File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ class BufferRegion : public Py::PythonExtension<BufferRegion>
107
107
data = NULL ;
108
108
}
109
109
};
110
+
111
+ private:
112
+ // prevent copying
113
+ BufferRegion (const BufferRegion&);
114
+ BufferRegion& operator =(const BufferRegion&);
110
115
};
111
116
112
117
class GCAgg
@@ -284,6 +289,10 @@ class RendererAgg: public Py::PythonExtension<RendererAgg>
284
289
285
290
private:
286
291
void create_alpha_buffers ();
292
+
293
+ // prevent copying
294
+ RendererAgg (const RendererAgg&);
295
+ RendererAgg& operator =(const RendererAgg&);
287
296
};
288
297
289
298
// the extension module
@@ -306,6 +315,10 @@ class _backend_agg_module : public Py::ExtensionModule<_backend_agg_module>
306
315
private:
307
316
308
317
Py::Object new_renderer (const Py::Tuple &args, const Py::Dict &kws);
318
+
319
+ // prevent copying
320
+ _backend_agg_module (const _backend_agg_module&);
321
+ _backend_agg_module& operator =(const _backend_agg_module&);
309
322
};
310
323
311
324
Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ class Image : public Py::PythonExtension<Image>
118
118
static char get_resample__doc__[];
119
119
static char set_resample__doc__[];
120
120
121
+ // prevent copying
122
+ Image (const Image&);
123
+ Image& operator =(const Image&);
121
124
};
122
125
123
126
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ class FT2Image : public Py::PythonClass<FT2Image>
75
75
unsigned long _height;
76
76
77
77
void resize (long width, long height);
78
+
79
+ // prevent copying
80
+ FT2Image (const FT2Image&);
81
+ FT2Image& operator =(const FT2Image&);
78
82
};
79
83
80
84
class Glyph : public Py ::PythonClass<Glyph>
@@ -90,6 +94,10 @@ class Glyph : public Py::PythonClass<Glyph>
90
94
size_t glyphInd;
91
95
private:
92
96
Py::Dict __dict__;
97
+
98
+ // prevent copying
99
+ Glyph (const Glyph&);
100
+ Glyph& operator =(const Glyph&);
93
101
};
94
102
95
103
class FT2Font : public Py ::PythonClass<FT2Font>
@@ -172,15 +180,23 @@ class FT2Font : public Py::PythonClass<FT2Font>
172
180
static char get_image__doc__[];
173
181
static char attach_file__doc__[];
174
182
static char get_path__doc__[];
183
+
184
+ // prevent copying
185
+ FT2Font (const FT2Font&);
186
+ FT2Font& operator =(const FT2Font&);
175
187
};
176
188
177
189
// the extension module
178
190
class ft2font_module : public Py ::ExtensionModule<ft2font_module>
179
-
180
191
{
181
192
public:
182
193
ft2font_module ();
183
194
virtual ~ft2font_module ();
195
+
196
+ private:
197
+ // prevent copying
198
+ ft2font_module (const ft2font_module&);
199
+ ft2font_module operator =(const ft2font_module&);
184
200
};
185
201
186
202
#endif
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ class Printf
45
45
{
46
46
private :
47
47
char *buffer;
48
+ // prevent copying
49
+ Printf (const Printf&);
50
+ Printf& operator =(const Printf&);
48
51
public :
49
52
Printf (const char *, ...);
50
53
~Printf ();
You can’t perform that action at this time.
0 commit comments