From 089620728299ab1688edaf066e9f9790d67449aa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 18 Aug 2016 13:16:31 +0100 Subject: cppcheck: noCopyConstructor Change-Id: Id5323cb6f52666f85965e11b07e4f2bca8af4e78 --- vcl/headless/svpgdi.cxx | 6 ++++++ vcl/headless/svpglyphcache.cxx | 4 ++++ vcl/opengl/FixedTextureAtlas.cxx | 4 ++++ vcl/source/filter/igif/decode.hxx | 2 ++ vcl/source/gdi/impvect.cxx | 3 +++ vcl/source/window/toolbox.cxx | 3 +++ vcl/unx/generic/gdi/gcach_xpeer.cxx | 4 ++++ vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 3 +++ 8 files changed, 29 insertions(+) (limited to 'vcl') diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index af454a9f0ba4..e3218f649606 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -136,6 +136,9 @@ namespace private: SvpSalBitmap aTmpBmp; cairo_surface_t* source; + + SourceHelper(const SourceHelper&) = delete; + SourceHelper& operator=(const SourceHelper&) = delete; }; class MaskHelper @@ -196,6 +199,9 @@ namespace private: cairo_surface_t *mask; unsigned char* pAlphaBits; + + MaskHelper(const MaskHelper&) = delete; + MaskHelper& operator=(const MaskHelper&) = delete; }; } diff --git a/vcl/headless/svpglyphcache.cxx b/vcl/headless/svpglyphcache.cxx index f1af1e6a62c0..087fb7c4864b 100644 --- a/vcl/headless/svpglyphcache.cxx +++ b/vcl/headless/svpglyphcache.cxx @@ -34,6 +34,10 @@ namespace { private: GlyphCache* m_pSvpGlyphCache; + + GlyphCacheHolder(const GlyphCacheHolder&) = delete; + GlyphCacheHolder& operator=(const GlyphCacheHolder&) = delete; + public: GlyphCacheHolder() { diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx index 7a980c9251e4..963818c17847 100644 --- a/vcl/opengl/FixedTextureAtlas.cxx +++ b/vcl/opengl/FixedTextureAtlas.cxx @@ -69,6 +69,10 @@ struct FixedTexture } return -1; } + +private: + FixedTexture(const FixedTexture&) = delete; + FixedTexture& operator=(const FixedTexture&) = delete; }; FixedTextureAtlasManager::FixedTextureAtlasManager(int nWidthFactor, int nHeightFactor, int nSubTextureSize) diff --git a/vcl/source/filter/igif/decode.hxx b/vcl/source/filter/igif/decode.hxx index d4a99a71d240..0983958ef679 100644 --- a/vcl/source/filter/igif/decode.hxx +++ b/vcl/source/filter/igif/decode.hxx @@ -46,6 +46,8 @@ class GIFLZWDecompressor bool AddToTable(sal_uInt16 nPrevCode, sal_uInt16 nCodeFirstData); bool ProcessOneCode(); + GIFLZWDecompressor(const GIFLZWDecompressor&) = delete; + GIFLZWDecompressor& operator=(const GIFLZWDecompressor&) = delete; public: explicit GIFLZWDecompressor( sal_uInt8 cDataSize ); diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx index d8edab2617de..b33ef2744ab0 100644 --- a/vcl/source/gdi/impvect.cxx +++ b/vcl/source/gdi/impvect.cxx @@ -274,6 +274,9 @@ private: void ImplPostProcess( const ImplPointArray& rArr ); + ImplChain(const ImplChain&) = delete; + ImplChain& operator=(const ImplChain&) = delete; + public: ImplChain(); diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index f203f4e5f5f4..4937e5957e3b 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -106,6 +106,9 @@ private: bool mbResizeMode; bool mbShowDragRect; + ImplTBDragMgr(const ImplTBDragMgr&) = delete; + ImplTBDragMgr& operator=(const ImplTBDragMgr&) = delete; + public: ImplTBDragMgr(); ~ImplTBDragMgr(); diff --git a/vcl/unx/generic/gdi/gcach_xpeer.cxx b/vcl/unx/generic/gdi/gcach_xpeer.cxx index d98fe3fb2af9..c74498e3d00d 100644 --- a/vcl/unx/generic/gdi/gcach_xpeer.cxx +++ b/vcl/unx/generic/gdi/gcach_xpeer.cxx @@ -63,6 +63,10 @@ namespace { private: X11GlyphCache* m_pX11GlyphCache; + + GlyphCacheHolder(const GlyphCacheHolder&) = delete; + GlyphCacheHolder& operator=(const GlyphCacheHolder&) = delete; + public: GlyphCacheHolder() { diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx index 2f26cceb13ea..79744b2353df 100644 --- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx +++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx @@ -1098,6 +1098,9 @@ private: sal_uInt16 mnPoints; sal_uInt16 mnPoly; bool bHasOffline; + + PolyArgs(const PolyArgs&) = delete; + PolyArgs& operator=(const PolyArgs&) = delete; }; PolyArgs::PolyArgs( tools::PolyPolygon& rPolyPoly, sal_uInt16 nMaxPoints ) -- cgit v1.2.3