diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-12-08 23:51:59 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-12-08 23:51:59 +0100 |
commit | c35d030472e6cb140c3dff30b91541772c992eb0 (patch) | |
tree | 9ab880b894b4e7b4106b184c30467271f425db8a /goo/PNGWriter.h | |
parent | f6741d9242bf2d9c13c8d534c50c8e4d404afc7f (diff) |
Add private copy constructor and operator= to make sure we don't use the default ones
Since using them would results in bad things happening
Diffstat (limited to 'goo/PNGWriter.h')
-rw-r--r-- | goo/PNGWriter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/goo/PNGWriter.h b/goo/PNGWriter.h index 37df4273..dc905d7d 100644 --- a/goo/PNGWriter.h +++ b/goo/PNGWriter.h @@ -6,7 +6,7 @@ // // Copyright (C) 2009 Warren Toomey <wkt@tuhs.org> // Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com> -// Copyright (C) 2009, 2011 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2009, 2011, 2012 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2009 Stefan Thomas <thomas@eload24.com> // Copyright (C) 2010, 2011 Adrian Johnson <ajohnson@redneon.com> // @@ -49,6 +49,9 @@ public: bool close(); private: + PNGWriter(const PNGWriter &other); + PNGWriter& operator=(const PNGWriter &other); + Format format; png_structp png_ptr; png_infop info_ptr; |