OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | |
10 | |
11 #ifndef GrNoncopyable_DEFINED | 9 #ifndef GrNoncopyable_DEFINED |
12 #define GrNoncopyable_DEFINED | 10 #define GrNoncopyable_DEFINED |
13 | 11 |
14 #include "GrTypes.h" | 12 #include "GrTypes.h" |
15 | 13 |
16 /** | 14 /** |
17 * Base for classes that want to disallow copying themselves. It makes its | 15 * Base for classes that want to disallow copying themselves. It makes its |
18 * copy-constructor and assignment operators private (and unimplemented). | 16 * copy-constructor and assignment operators private (and unimplemented). |
19 */ | 17 */ |
20 class GR_API GrNoncopyable { | 18 class SK_API GrNoncopyable { |
21 public: | 19 public: |
22 GrNoncopyable() {} | 20 GrNoncopyable() {} |
23 | 21 |
24 private: | 22 private: |
25 // illegal | 23 // illegal |
26 GrNoncopyable(const GrNoncopyable&); | 24 GrNoncopyable(const GrNoncopyable&); |
27 GrNoncopyable& operator=(const GrNoncopyable&); | 25 GrNoncopyable& operator=(const GrNoncopyable&); |
28 }; | 26 }; |
29 | 27 |
30 #endif | 28 #endif |
OLD | NEW |