summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-25 09:35:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-25 12:32:54 +0100
commitacad8441cc40b7b0f91681d6827f8364de05046e (patch)
tree2be1315764dc269557a60fb36a48d86b7ed23402 /vcl
parent12b6bca821a7b0137fcac243f8aa078ba1a152ad (diff)
cppcheck: noExplicitConstructor
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/android/androidinst.cxx4
-rw-r--r--vcl/generic/fontmanager/fontsubst.cxx2
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.hxx2
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx2
-rw-r--r--vcl/generic/print/bitmap_gfx.cxx6
-rw-r--r--vcl/generic/print/genpspgraphics.cxx8
-rw-r--r--vcl/generic/print/prtsetup.hxx4
-rw-r--r--vcl/generic/print/text_gfx.cxx2
-rw-r--r--vcl/headless/headlessinst.cxx4
-rw-r--r--vcl/headless/svpdata.cxx2
-rw-r--r--vcl/headless/svptextrender.cxx2
-rw-r--r--vcl/opengl/salbmp.cxx6
-rw-r--r--vcl/osx/documentfocuslistener.hxx2
-rw-r--r--vcl/qa/cppunit/dndtest.cxx8
-rw-r--r--vcl/qa/cppunit/lifecycle.cxx5
-rw-r--r--vcl/qa/cppunit/timer.cxx6
-rw-r--r--vcl/quartz/salbmp.cxx6
-rw-r--r--vcl/source/app/IconThemeInfo.cxx2
-rw-r--r--vcl/source/app/IconThemeScanner.cxx2
-rw-r--r--vcl/source/app/IconThemeSelector.cxx2
-rw-r--r--vcl/source/app/session.cxx2
-rw-r--r--vcl/source/app/svmain.cxx2
-rw-r--r--vcl/source/bitmap/bitmapscalesuper.cxx2
-rw-r--r--vcl/source/control/quickselectionengine.cxx2
-rw-r--r--vcl/source/edit/textundo.hxx6
-rw-r--r--vcl/source/edit/textview.cxx4
-rw-r--r--vcl/source/edit/vclmedit.cxx2
-rw-r--r--vcl/source/filter/FilterConfigCache.hxx2
-rw-r--r--vcl/source/filter/graphicfilter.cxx2
-rw-r--r--vcl/source/filter/igif/decode.hxx2
-rw-r--r--vcl/source/filter/igif/gifread.hxx2
-rw-r--r--vcl/source/filter/ixbm/xbmread.hxx12
-rw-r--r--vcl/source/filter/ixpm/xpmread.hxx2
-rw-r--r--vcl/source/filter/wmf/emfwr.hxx2
-rw-r--r--vcl/source/filter/wmf/winmtf.hxx6
-rw-r--r--vcl/source/fontsubset/sft.cxx2
-rw-r--r--vcl/source/gdi/bmpfast.cxx2
-rw-r--r--vcl/source/gdi/pdfextoutdevdata.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx10
-rw-r--r--vcl/source/window/layout.cxx2
-rw-r--r--vcl/source/window/menubarwindow.hxx2
-rw-r--r--vcl/source/window/mnemonicengine.cxx2
-rw-r--r--vcl/source/window/openglwin.cxx2
-rw-r--r--vcl/source/window/scrwnd.hxx2
-rw-r--r--vcl/unx/generic/app/i18n_status.cxx4
-rw-r--r--vcl/unx/generic/app/randrwrapper.cxx4
-rw-r--r--vcl/unx/generic/app/wmadaptor.cxx4
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.hxx2
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.hxx2
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.hxx2
-rw-r--r--vcl/unx/generic/gdi/openglx11cairotextrender.hxx2
-rw-r--r--vcl/unx/generic/gdi/x11cairotextrender.hxx2
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atklistener.hxx2
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx2
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx4
-rw-r--r--vcl/unx/gtk/gdi/salprn-gtk.cxx2
-rw-r--r--vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx2
-rw-r--r--vcl/unx/kde/UnxFilePicker.hxx2
-rw-r--r--vcl/unx/kde4/KDE4FilePicker.hxx2
-rw-r--r--vcl/unx/kde4/KDEData.hxx2
-rw-r--r--vcl/unx/kde4/KDESalDisplay.hxx2
-rw-r--r--vcl/unx/kde4/KDESalInstance.hxx2
-rw-r--r--vcl/win/source/app/salinst.cxx2
-rw-r--r--vcl/win/source/gdi/cairo_win32_cairo.hxx2
-rw-r--r--vcl/win/source/gdi/gdiimpl.hxx2
-rw-r--r--vcl/workben/mtfdemo.cxx4
67 files changed, 104 insertions, 105 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index 82c4a3375e24..ea91e7a76da6 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -33,12 +33,12 @@ static int viewWidth = 1, viewHeight = 1;
class AndroidSalData : public SalGenericData
{
public:
- AndroidSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_ANDROID, pInstance ) {}
+ explicit AndroidSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_ANDROID, pInstance ) {}
virtual void ErrorTrapPush() {}
virtual bool ErrorTrapPop( bool ) { return false; }
};
-void AndroidSalInstance::damaged(AndroidSalFrame */* frame */)
+void AndroidSalInstance::damaged(AndroidSalFrame* /* frame */)
{
static bool beenHere = false;
static jmethodID nCallbackDamaged = 0;
diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx
index 8ac1e1e54221..c84b7ddbe4b1 100644
--- a/vcl/generic/fontmanager/fontsubst.cxx
+++ b/vcl/generic/fontmanager/fontsubst.cxx
@@ -134,7 +134,7 @@ namespace
private:
const FontSelectPatternAttributes& mrAttributes;
public:
- equal(const FontSelectPatternAttributes& rAttributes)
+ explicit equal(const FontSelectPatternAttributes& rAttributes)
: mrAttributes(rAttributes)
{
}
diff --git a/vcl/generic/glyphs/gcach_ftyp.hxx b/vcl/generic/glyphs/gcach_ftyp.hxx
index 590fb90d2727..ff411a6448f4 100644
--- a/vcl/generic/glyphs/gcach_ftyp.hxx
+++ b/vcl/generic/glyphs/gcach_ftyp.hxx
@@ -45,7 +45,7 @@ public:
int GetLangBoost() const { return mnLangBoost; }
private:
- FtFontFile( const OString& rNativeFileName );
+ explicit FtFontFile( const OString& rNativeFileName );
const OString maNativeFileName;
unsigned char* mpFileMap;
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index bc65eafc8c89..0eecae558a44 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -311,7 +311,7 @@ private:
int mnUnitsPerEM;
public:
- HbLayoutEngine(ServerFont&);
+ explicit HbLayoutEngine(ServerFont&);
virtual ~HbLayoutEngine();
virtual bool Layout(ServerFontLayout&, ImplLayoutArgs&) SAL_OVERRIDE;
diff --git a/vcl/generic/print/bitmap_gfx.cxx b/vcl/generic/print/bitmap_gfx.cxx
index ca6495ff8d56..a5c9699c9542 100644
--- a/vcl/generic/print/bitmap_gfx.cxx
+++ b/vcl/generic/print/bitmap_gfx.cxx
@@ -66,7 +66,7 @@ private:
public:
- HexEncoder (osl::File* pFile);
+ explicit HexEncoder (osl::File* pFile);
virtual ~HexEncoder ();
void WriteAscii (sal_uInt8 nByte);
virtual void EncodeByte (sal_uInt8 nByte) SAL_OVERRIDE;
@@ -140,7 +140,7 @@ private:
public:
- Ascii85Encoder (osl::File* pFile);
+ explicit Ascii85Encoder (osl::File* pFile);
virtual ~Ascii85Encoder ();
virtual void EncodeByte (sal_uInt8 nByte) SAL_OVERRIDE;
void WriteAscii (sal_uInt8 nByte);
@@ -286,7 +286,7 @@ private:
public:
- LZWEncoder (osl::File* pOutputFile);
+ explicit LZWEncoder (osl::File* pOutputFile);
virtual ~LZWEncoder ();
virtual void EncodeByte (sal_uInt8 nByte) SAL_OVERRIDE;
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index beedfaa40dee..0a1bedc6f95d 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -78,8 +78,8 @@ private:
public:
- SalPrinterBmp (BitmapBuffer* pBitmap);
- virtual ~SalPrinterBmp ();
+ explicit SalPrinterBmp (BitmapBuffer* pBitmap);
+ virtual ~SalPrinterBmp ();
virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx) const SAL_OVERRIDE;
virtual sal_uInt32 GetPaletteEntryCount () const SAL_OVERRIDE;
virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const SAL_OVERRIDE;
@@ -566,7 +566,7 @@ private:
sal_IntPtr mnFontId;
public:
- ImplPspFontData( const psp::FastPrintFontInfo& );
+ explicit ImplPspFontData( const psp::FastPrintFontInfo& );
virtual sal_IntPtr GetFontId() const SAL_OVERRIDE { return mnFontId; }
virtual PhysicalFontFace* Clone() const SAL_OVERRIDE { return new ImplPspFontData( *this ); }
virtual ImplFontEntry* CreateFontInstance( FontSelectPattern& ) const SAL_OVERRIDE;
@@ -586,7 +586,7 @@ ImplFontEntry* ImplPspFontData::CreateFontInstance( FontSelectPattern& rFSD ) co
class PspFontLayout : public GenericSalLayout
{
public:
- PspFontLayout( ::psp::PrinterGfx& );
+ explicit PspFontLayout( ::psp::PrinterGfx& );
virtual bool LayoutText( ImplLayoutArgs& ) SAL_OVERRIDE;
virtual void InitFont() const SAL_OVERRIDE;
virtual void DrawText( SalGraphics& ) const SAL_OVERRIDE;
diff --git a/vcl/generic/print/prtsetup.hxx b/vcl/generic/print/prtsetup.hxx
index 67b6cd2216b8..240d78e1fb17 100644
--- a/vcl/generic/print/prtsetup.hxx
+++ b/vcl/generic/print/prtsetup.hxx
@@ -86,7 +86,7 @@ class RTSPaperPage : public TabPage
DECL_LINK( SelectHdl, ListBox* );
public:
- RTSPaperPage( RTSDialog* );
+ explicit RTSPaperPage( RTSDialog* );
virtual ~RTSPaperPage();
virtual void dispose() SAL_OVERRIDE;
@@ -113,7 +113,7 @@ class RTSDevicePage : public TabPage
DECL_LINK( SelectHdl, ListBox* );
DECL_LINK( ModifyHdl, Edit* );
public:
- RTSDevicePage( RTSDialog* );
+ explicit RTSDevicePage( RTSDialog* );
virtual ~RTSDevicePage();
virtual void dispose() SAL_OVERRIDE;
diff --git a/vcl/generic/print/text_gfx.cxx b/vcl/generic/print/text_gfx.cxx
index 569a10e4ed35..a30a2b3d621a 100644
--- a/vcl/generic/print/text_gfx.cxx
+++ b/vcl/generic/print/text_gfx.cxx
@@ -56,7 +56,7 @@ class Font2
bool IsSymbolFont () const
{ return mbSymbol; }
- Font2 (const PrinterGfx &rGfx);
+ explicit Font2 (const PrinterGfx &rGfx);
~Font2 () {}
};
diff --git a/vcl/headless/headlessinst.cxx b/vcl/headless/headlessinst.cxx
index f204b5f3fd84..a8c308510f73 100644
--- a/vcl/headless/headlessinst.cxx
+++ b/vcl/headless/headlessinst.cxx
@@ -13,7 +13,7 @@
class HeadlessSalInstance : public SvpSalInstance
{
public:
- HeadlessSalInstance( SalYieldMutex *pMutex );
+ explicit HeadlessSalInstance( SalYieldMutex *pMutex );
virtual ~HeadlessSalInstance();
virtual SalSystem* CreateSalSystem();
@@ -53,7 +53,7 @@ SalSystem *HeadlessSalInstance::CreateSalSystem()
class HeadlessSalData : public SalGenericData
{
public:
- HeadlessSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_HEADLESS, pInstance ) {}
+ explicit HeadlessSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_HEADLESS, pInstance ) {}
virtual void ErrorTrapPush() {}
virtual bool ErrorTrapPop( bool ) { return false; }
};
diff --git a/vcl/headless/svpdata.cxx b/vcl/headless/svpdata.cxx
index 56e7b8d82db0..0d0abdbfd3cf 100644
--- a/vcl/headless/svpdata.cxx
+++ b/vcl/headless/svpdata.cxx
@@ -13,7 +13,7 @@
class SvpSalData : public SalGenericData
{
public:
- SvpSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_SVP, pInstance ) {}
+ explicit SvpSalData( SalInstance *pInstance ) : SalGenericData( SAL_DATA_SVP, pInstance ) {}
virtual void ErrorTrapPush() SAL_OVERRIDE {}
virtual bool ErrorTrapPop( bool ) SAL_OVERRIDE { return false; }
};
diff --git a/vcl/headless/svptextrender.cxx b/vcl/headless/svptextrender.cxx
index f25e534fc50f..2ed928fa796c 100644
--- a/vcl/headless/svptextrender.cxx
+++ b/vcl/headless/svptextrender.cxx
@@ -67,7 +67,7 @@ protected:
class SvpGlyphCache : public GlyphCache
{
public:
- SvpGlyphCache( SvpGlyphPeer& rPeer ) : GlyphCache( rPeer) {}
+ explicit SvpGlyphCache( SvpGlyphPeer& rPeer ) : GlyphCache( rPeer) {}
SvpGlyphPeer& GetPeer() { return reinterpret_cast<SvpGlyphPeer&>( mrPeer ); }
static SvpGlyphCache& GetInstance();
};
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 982de8b3a9be..39218faabc5e 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -227,7 +227,7 @@ private:
const BitmapPalette& mrPalette;
public:
- ImplPixelFormat8( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat8( const BitmapPalette& rPalette )
: mrPalette( rPalette )
{
}
@@ -246,7 +246,7 @@ private:
sal_uInt32 mnShift;
public:
- ImplPixelFormat4( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat4( const BitmapPalette& rPalette )
: mrPalette( rPalette )
, mnX(0)
, mnShift(4)
@@ -276,7 +276,7 @@ private:
sal_uInt32 mnX;
public:
- ImplPixelFormat1( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat1( const BitmapPalette& rPalette )
: mrPalette(rPalette)
, mnX(0)
{
diff --git a/vcl/osx/documentfocuslistener.hxx b/vcl/osx/documentfocuslistener.hxx
index 05b1fc2331ea..002819c6b2c7 100644
--- a/vcl/osx/documentfocuslistener.hxx
+++ b/vcl/osx/documentfocuslistener.hxx
@@ -36,7 +36,7 @@ class DocumentFocusListener :
public:
- DocumentFocusListener(AquaA11yFocusTracker& rTracker);
+ explicit DocumentFocusListener(AquaA11yFocusTracker& rTracker);
void attachRecursive(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& xAccessible
diff --git a/vcl/qa/cppunit/dndtest.cxx b/vcl/qa/cppunit/dndtest.cxx
index 7e502faf2372..64da3070d1cd 100644
--- a/vcl/qa/cppunit/dndtest.cxx
+++ b/vcl/qa/cppunit/dndtest.cxx
@@ -65,7 +65,7 @@ class MyDragAndDropListener: public ::cppu::WeakImplHelper3 < XDropTargetListene
public:
- MyDragAndDropListener( vcl::Window * pWindow ) : m_pWindow( pWindow ) {};
+ explicit MyDragAndDropListener( vcl::Window * pWindow ) : m_pWindow( pWindow ) {};
virtual void SAL_CALL dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException);
virtual void SAL_CALL drop( const DropTargetDropEvent& dtde ) throw(RuntimeException);
@@ -86,7 +86,7 @@ class MyInfoBox : public InfoBox
public:
- MyInfoBox( vcl::Window* pParent );
+ explicit MyInfoBox( vcl::Window* pParent );
};
class MyListBox : public ListBox
@@ -94,7 +94,7 @@ class MyListBox : public ListBox
public:
- MyListBox( vcl::Window* pParent );
+ explicit MyListBox( vcl::Window* pParent );
};
class StringTransferable : public ::cppu::WeakImplHelper1< XTransferable >
@@ -103,7 +103,7 @@ class StringTransferable : public ::cppu::WeakImplHelper1< XTransferable >
Sequence< DataFlavor > m_aFlavorList;
public:
- StringTransferable( const OUString& rString ) : m_aData( rString ), m_aFlavorList( 1 )
+ explicit StringTransferable( const OUString& rString ) : m_aData( rString ), m_aFlavorList( 1 )
{
DataFlavor df;
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx
index 2a63e79dfefe..d3b15d0fb088 100644
--- a/vcl/qa/cppunit/lifecycle.cxx
+++ b/vcl/qa/cppunit/lifecycle.cxx
@@ -114,7 +114,7 @@ void LifecycleTest::testParentedWidgets()
class DisposableChild : public vcl::Window
{
public:
- DisposableChild(vcl::Window *pParent) : vcl::Window(pParent) {}
+ explicit DisposableChild(vcl::Window *pParent) : vcl::Window(pParent) {}
virtual ~DisposableChild()
{
disposeOnce();
@@ -149,7 +149,7 @@ void LifecycleTest::testPostDispose()
class FocusCrashPostDispose : public TabControl
{
public:
- FocusCrashPostDispose(vcl::Window *pParent) :
+ explicit FocusCrashPostDispose(vcl::Window *pParent) :
TabControl(pParent, 0)
{
}
@@ -159,7 +159,6 @@ public:
}
virtual bool Notify( NotifyEvent& ) SAL_OVERRIDE
{
-// CPPUNIT_FAIL("notify");
return false;
}
virtual void GetFocus() SAL_OVERRIDE
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index 5b8128100e22..976853c88e7b 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -24,7 +24,7 @@ class WatchDog : public osl::Thread
{
sal_Int32 mnSeconds;
public:
- WatchDog(sal_Int32 nSeconds) :
+ explicit WatchDog(sal_Int32 nSeconds) :
Thread(),
mnSeconds( nSeconds )
{
@@ -86,7 +86,7 @@ class IdleBool : public Idle
{
bool &mrBool;
public:
- IdleBool( bool &rBool ) :
+ explicit IdleBool( bool &rBool ) :
Idle(), mrBool( rBool )
{
SetPriority( SchedulerPriority::LOWEST );
@@ -176,7 +176,7 @@ void TimerTest::testAutoTimer()
class YieldTimer : public Timer
{
public:
- YieldTimer( sal_uLong nMS ) : Timer()
+ explicit YieldTimer( sal_uLong nMS ) : Timer()
{
SetTimeout( nMS );
Start();
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 06b55ac786a9..4ee39d3ff630 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -428,7 +428,7 @@ private:
const BitmapPalette& mrPalette;
public:
- ImplPixelFormat8( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat8( const BitmapPalette& rPalette )
: mrPalette( rPalette )
{
}
@@ -457,7 +457,7 @@ private:
sal_uInt32 mnShift;
public:
- ImplPixelFormat4( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat4( const BitmapPalette& rPalette )
: mrPalette( rPalette )
{
}
@@ -498,7 +498,7 @@ private:
sal_uInt32 mnX;
public:
- ImplPixelFormat1( const BitmapPalette& rPalette )
+ explicit ImplPixelFormat1( const BitmapPalette& rPalette )
: mrPalette( rPalette )
{
}
diff --git a/vcl/source/app/IconThemeInfo.cxx b/vcl/source/app/IconThemeInfo.cxx
index 869eb85e40db..9531bf493ffe 100644
--- a/vcl/source/app/IconThemeInfo.cxx
+++ b/vcl/source/app/IconThemeInfo.cxx
@@ -132,7 +132,7 @@ namespace
private:
const OUString& m_rThemeId;
public:
- SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
+ explicit SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
bool operator()(const vcl::IconThemeInfo &rInfo)
{
return m_rThemeId == rInfo.GetThemeId();
diff --git a/vcl/source/app/IconThemeScanner.cxx b/vcl/source/app/IconThemeScanner.cxx
index 45346cb3be45..29f1a9142f4e 100644
--- a/vcl/source/app/IconThemeScanner.cxx
+++ b/vcl/source/app/IconThemeScanner.cxx
@@ -181,7 +181,7 @@ namespace
private:
const OUString& m_rThemeId;
public:
- SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
+ explicit SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
bool operator()(const vcl::IconThemeInfo &rInfo)
{
return m_rThemeId == rInfo.GetThemeId();
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
index f7971dd17e1a..1a31f4158e81 100644
--- a/vcl/source/app/IconThemeSelector.cxx
+++ b/vcl/source/app/IconThemeSelector.cxx
@@ -30,7 +30,7 @@ namespace {
private:
const OUString& m_rThemeId;
public:
- SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
+ explicit SameTheme(const OUString &rThemeId) : m_rThemeId(rThemeId) {}
bool operator()(const vcl::IconThemeInfo &rInfo)
{
return m_rThemeId == rInfo.GetThemeId();
diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx
index 5db137f4d463..5686ec15f40b 100644
--- a/vcl/source/app/session.cxx
+++ b/vcl/source/app/session.cxx
@@ -56,7 +56,7 @@ class VCLSession:
bool m_bInteractionDone;
bool m_bSaveDone;
- Listener( const css::uno::Reference< XSessionManagerListener >& xListener )
+ explicit Listener( const css::uno::Reference< XSessionManagerListener >& xListener )
: m_xListener( xListener ),
m_bInteractionRequested( false ),
m_bInteractionDone( false ),
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index fce2961c2c53..3f9026ed976e 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -206,7 +206,7 @@ static oslSignalHandler pExceptionHandler = NULL;
class DesktopEnvironmentContext: public cppu::WeakImplHelper1< com::sun::star::uno::XCurrentContext >
{
public:
- DesktopEnvironmentContext( const com::sun::star::uno::Reference< com::sun::star::uno::XCurrentContext > & ctx)
+ explicit DesktopEnvironmentContext( const com::sun::star::uno::Reference< com::sun::star::uno::XCurrentContext > & ctx)
: m_xNextContext( ctx ) {}
// XCurrentContext
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx
index 116b23355afd..2172aa53c0de 100644
--- a/vcl/source/bitmap/bitmapscalesuper.cxx
+++ b/vcl/source/bitmap/bitmapscalesuper.cxx
@@ -89,7 +89,7 @@ class ScaleTask : public comphelper::ThreadTask
ScaleRangeFn mpFn;
std::vector< ScaleRangeContext > maStrips;
public:
- ScaleTask( ScaleRangeFn pFn ) : mpFn( pFn ) {}
+ explicit ScaleTask( ScaleRangeFn pFn ) : mpFn( pFn ) {}
void push( ScaleRangeContext &aRC ) { maStrips.push_back( aRC ); }
virtual void doWork() SAL_OVERRIDE
{
diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx
index f9acf5bab956..2ed4d8e38e25 100644
--- a/vcl/source/control/quickselectionengine.cxx
+++ b/vcl/source/control/quickselectionengine.cxx
@@ -36,7 +36,7 @@ namespace vcl
::boost::optional< sal_Unicode > aSingleSearchChar;
Timer aSearchTimeout;
- QuickSelectionEngine_Data( ISearchableStringList& _entryList )
+ explicit QuickSelectionEngine_Data( ISearchableStringList& _entryList )
:rEntryList( _entryList )
,sCurrentSearchString()
,aSingleSearchChar()
diff --git a/vcl/source/edit/textundo.hxx b/vcl/source/edit/textundo.hxx
index ff24a0be872a..d51465eee90f 100644
--- a/vcl/source/edit/textundo.hxx
+++ b/vcl/source/edit/textundo.hxx
@@ -40,8 +40,8 @@ protected:
TextView* GetView() const { return mpTextEngine->GetActiveView(); }
public:
- TextUndoManager( TextEngine* pTextEngine );
- virtual ~TextUndoManager();
+ explicit TextUndoManager( TextEngine* pTextEngine );
+ virtual ~TextUndoManager();
using SfxUndoManager::Undo;
virtual bool Undo() SAL_OVERRIDE;
@@ -65,7 +65,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- TextUndo( TextEngine* pTextEngine );
+ explicit TextUndo( TextEngine* pTextEngine );
virtual ~TextUndo();
TextEngine* GetTextEngine() const { return mpTextEngine; }
diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx
index 87afc813caee..679a983c21df 100644
--- a/vcl/source/edit/textview.cxx
+++ b/vcl/source/edit/textview.cxx
@@ -67,8 +67,8 @@ private:
SvMemoryStream maHTMLStream;
public:
- TETextDataObject( const OUString& rText );
- virtual ~TETextDataObject();
+ explicit TETextDataObject( const OUString& rText );
+ virtual ~TETextDataObject();
OUString& GetText() { return maText; }
SvMemoryStream& GetHTMLStream() { return maHTMLStream; }
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index 3b11cbb9b8a8..84bd57064455 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -46,7 +46,7 @@ private:
bool mbTextSelectable;
public:
- TextWindow( vcl::Window* pParent );
+ explicit TextWindow( vcl::Window* pParent );
virtual ~TextWindow();
virtual void dispose() SAL_OVERRIDE;
diff --git a/vcl/source/filter/FilterConfigCache.hxx b/vcl/source/filter/FilterConfigCache.hxx
index ee83a39db2fb..c288132a4ce2 100644
--- a/vcl/source/filter/FilterConfigCache.hxx
+++ b/vcl/source/filter/FilterConfigCache.hxx
@@ -119,7 +119,7 @@ public:
bool IsExportInternalFilter( sal_uInt16 nFormat );
bool IsExportPixelFormat( sal_uInt16 nFormat );
- FilterConfigCache( bool bUseConfig );
+ explicit FilterConfigCache( bool bUseConfig );
~FilterConfigCache();
};
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index a77e9739cae0..0a8afa2d0407 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -106,7 +106,7 @@ protected:
public:
- ImpFilterOutputStream( SvStream& rStm ) : mrStm( rStm ) {}
+ explicit ImpFilterOutputStream( SvStream& rStm ) : mrStm( rStm ) {}
virtual ~ImpFilterOutputStream() {}
};
diff --git a/vcl/source/filter/igif/decode.hxx b/vcl/source/filter/igif/decode.hxx
index ee093bfaa2c5..4f5edde442cc 100644
--- a/vcl/source/filter/igif/decode.hxx
+++ b/vcl/source/filter/igif/decode.hxx
@@ -48,7 +48,7 @@ class GIFLZWDecompressor
public:
- GIFLZWDecompressor( sal_uInt8 cDataSize );
+ explicit GIFLZWDecompressor( sal_uInt8 cDataSize );
~GIFLZWDecompressor();
HPBYTE DecompressBlock( HPBYTE pSrc, sal_uInt8 cBufSize, sal_uLong& rCount, bool& rEOI );
diff --git a/vcl/source/filter/igif/gifread.hxx b/vcl/source/filter/igif/gifread.hxx
index 5816fe54e6c2..dc161c2b31cb 100644
--- a/vcl/source/filter/igif/gifread.hxx
+++ b/vcl/source/filter/igif/gifread.hxx
@@ -106,7 +106,7 @@ public:
ReadState ReadGIF( Graphic& rGraphic );
const Graphic& GetIntermediateGraphic();
- GIFReader( SvStream& rStm );
+ explicit GIFReader( SvStream& rStm );
virtual ~GIFReader();
};
diff --git a/vcl/source/filter/ixbm/xbmread.hxx b/vcl/source/filter/ixbm/xbmread.hxx
index 4f3b52e7e8af..55e1a9638e8e 100644
--- a/vcl/source/filter/ixbm/xbmread.hxx
+++ b/vcl/source/filter/ixbm/xbmread.hxx
@@ -51,18 +51,18 @@ class XBMReader : public GraphicReader
long nHeight;
bool bStatus;
- void InitTable();
- OString FindTokenLine( SvStream* pInStm, const char* pTok1,
+ void InitTable();
+ OString FindTokenLine( SvStream* pInStm, const char* pTok1,
const char* pTok2 = NULL, const char* pTok3 = NULL );
- long ParseDefine( const sal_Char* pDefine );
+ long ParseDefine( const sal_Char* pDefine );
bool ParseData( SvStream* pInStm, const OString& aLastLine, XBMFormat eFormat );
public:
- XBMReader( SvStream& rStm );
- virtual ~XBMReader();
+ explicit XBMReader( SvStream& rStm );
+ virtual ~XBMReader();
- ReadState ReadXBM( Graphic& rGraphic );
+ ReadState ReadXBM( Graphic& rGraphic );
};
#endif // _XBMPRIVATE
diff --git a/vcl/source/filter/ixpm/xpmread.hxx b/vcl/source/filter/ixpm/xpmread.hxx
index 0c9b9d314446..14543ca7d9fd 100644
--- a/vcl/source/filter/ixpm/xpmread.hxx
+++ b/vcl/source/filter/ixpm/xpmread.hxx
@@ -95,7 +95,7 @@ private:
sal_uLong ImplGetULONG( sal_uLong nPara );
public:
- XPMReader( SvStream& rStm );
+ explicit XPMReader( SvStream& rStm );
virtual ~XPMReader();
ReadState ReadXPM( Graphic& rGraphic );
diff --git a/vcl/source/filter/wmf/emfwr.hxx b/vcl/source/filter/wmf/emfwr.hxx
index d037bdeb9d6c..80fc6e39ec89 100644
--- a/vcl/source/filter/wmf/emfwr.hxx
+++ b/vcl/source/filter/wmf/emfwr.hxx
@@ -89,7 +89,7 @@ private:
public:
- EMFWriter(SvStream &rStream)
+ explicit EMFWriter(SvStream &rStream)
: maVDev( VclPtr<VirtualDevice>::Create() )
, m_rStm(rStream)
, mpHandlesUsed(NULL)
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx
index d50fb3788e18..babad4ebbffd 100644
--- a/vcl/source/filter/wmf/winmtf.hxx
+++ b/vcl/source/filter/wmf/winmtf.hxx
@@ -287,7 +287,7 @@ struct WinMtfFontStyle
{
vcl::Font aFont;
- WinMtfFontStyle( LOGFONTW& rLogFont );
+ explicit WinMtfFontStyle( LOGFONTW& rLogFont );
};
@@ -316,7 +316,7 @@ struct WinMtfFillStyle
, aType(FillStyleSolid)
{}
- WinMtfFillStyle(Bitmap& rBmp)
+ explicit WinMtfFillStyle(Bitmap& rBmp)
: bTransparent(false)
, aType(FillStylePattern)
, aBmp(rBmp)
@@ -718,7 +718,7 @@ public:
void PassEMFPlus( void* pBuffer, sal_uInt32 nLength );
void PassEMFPlusHeaderInfo();
- WinMtfOutput( GDIMetaFile& rGDIMetaFile );
+ explicit WinMtfOutput( GDIMetaFile& rGDIMetaFile );
virtual ~WinMtfOutput();
};
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index dfd5d2056c99..ede244c752d3 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -75,7 +75,7 @@ struct PSPathElement
int x2, y2;
int x3, y3;
- PSPathElement( PathSegmentType i_eType ) : type( i_eType ),
+ explicit PSPathElement( PathSegmentType i_eType ) : type( i_eType ),
x1( 0 ), y1( 0 ),
x2( 0 ), y2( 0 ),
x3( 0 ), y3( 0 )
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index 10348c9029f2..10d18bacc878 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -30,7 +30,7 @@ typedef unsigned char PIXBYTE;
class BasePixelPtr
{
public:
- BasePixelPtr( PIXBYTE* p = NULL ) : mpPixel( p ) {}
+ explicit BasePixelPtr( PIXBYTE* p = NULL ) : mpPixel( p ) {}
void SetRawPtr( PIXBYTE* pRawPtr ) { mpPixel = pRawPtr; }
PIXBYTE* GetRawPtr() const { return mpPixel; }
void AddByteOffset( int nByteOffset ) { mpPixel += nByteOffset; }
diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx
index 3cab7d14dc76..ca695480cbdb 100644
--- a/vcl/source/gdi/pdfextoutdevdata.cxx
+++ b/vcl/source/gdi/pdfextoutdevdata.cxx
@@ -300,7 +300,7 @@ struct PageSyncData
bool mbGroupIgnoreGDIMtfActions;
- PageSyncData( GlobalSyncData* pGlobal ) : mbGroupIgnoreGDIMtfActions ( false ) { mpGlobalData = pGlobal; }
+ explicit PageSyncData( GlobalSyncData* pGlobal ) : mbGroupIgnoreGDIMtfActions ( false ) { mpGlobalData = pGlobal; }
void PushAction( const OutputDevice& rOutDev, const PDFExtOutDevDataSync::Action eAct );
bool PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIMtfAction, const PDFExtOutDevData& rOutDevData );
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 99433c2d053e..37ab711f393d 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -2245,7 +2245,7 @@ private:
public:
enum {PDF_FONT_MAGIC = 0xBDFF0A1C };
- ImplPdfBuiltinFontData( const PDFWriterImpl::BuiltinFont& );
+ explicit ImplPdfBuiltinFontData( const PDFWriterImpl::BuiltinFont& );
const PDFWriterImpl::BuiltinFont& GetBuiltinFont() const { return mrBuiltin; }
virtual PhysicalFontFace* Clone() const SAL_OVERRIDE { return new ImplPdfBuiltinFontData(*this); }
@@ -6051,7 +6051,7 @@ char *PDFSigningPKCS7PasswordCallback(PK11SlotInfo * /*slot*/, PRBool /*retry*/,
class HashContextScope {
HASHContext *mpPtr;
public:
- HashContextScope(HASHContext *pPtr) : mpPtr(pPtr) {}
+ explicit HashContextScope(HASHContext *pPtr) : mpPtr(pPtr) {}
~HashContextScope() { clear(); }
void clear() { if (mpPtr) { HASH_Destroy(mpPtr); } mpPtr = NULL; }
HASHContext *get() { return mpPtr; }
@@ -8181,7 +8181,7 @@ struct AnnotSorterLess
{
std::vector< PDFWriterImpl::PDFWidget >& m_rWidgets;
- AnnotSorterLess( std::vector< PDFWriterImpl::PDFWidget >& rWidgets ) : m_rWidgets( rWidgets ) {}
+ explicit AnnotSorterLess( std::vector< PDFWriterImpl::PDFWidget >& rWidgets ) : m_rWidgets( rWidgets ) {}
bool operator()( const AnnotationSortEntry& rLeft, const AnnotationSortEntry& rRight )
{
@@ -8270,7 +8270,7 @@ class PDFStreamIf :
PDFWriterImpl* m_pWriter;
bool m_bWrite;
public:
- PDFStreamIf( PDFWriterImpl* pWriter ) : m_pWriter( pWriter ), m_bWrite( true ) {}
+ explicit PDFStreamIf( PDFWriterImpl* pWriter ) : m_pWriter( pWriter ), m_bWrite( true ) {}
virtual ~PDFStreamIf();
virtual void SAL_CALL writeBytes( const com::sun::star::uno::Sequence< sal_Int8 >& aData ) throw(std::exception) SAL_OVERRIDE;
@@ -10785,7 +10785,7 @@ class AccessReleaser
{
BitmapReadAccess* m_pAccess;
public:
- AccessReleaser( BitmapReadAccess* pAccess ) : m_pAccess( pAccess ){}
+ explicit AccessReleaser( BitmapReadAccess* pAccess ) : m_pAccess( pAccess ){}
~AccessReleaser() { delete m_pAccess; }
};
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 226359690ae7..090a70c9e570 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -694,7 +694,7 @@ class sortButtons
{
bool m_bVerticalContainer;
public:
- sortButtons(bool bVerticalContainer)
+ explicit sortButtons(bool bVerticalContainer)
: m_bVerticalContainer(bVerticalContainer)
{
}
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index 0ebb19a65b35..23d87415a37f 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -111,7 +111,7 @@ private:
void GetFocus() SAL_OVERRIDE;
public:
- MenuBarWindow( vcl::Window* pParent );
+ explicit MenuBarWindow( vcl::Window* pParent );
virtual ~MenuBarWindow();
virtual void dispose() SAL_OVERRIDE;
diff --git a/vcl/source/window/mnemonicengine.cxx b/vcl/source/window/mnemonicengine.cxx
index 3fbf5923c4d1..f9f74398e172 100644
--- a/vcl/source/window/mnemonicengine.cxx
+++ b/vcl/source/window/mnemonicengine.cxx
@@ -30,7 +30,7 @@ namespace vcl
{
IMnemonicEntryList& rEntryList;
- MnemonicEngine_Data( IMnemonicEntryList& _rEntryList )
+ explicit MnemonicEngine_Data( IMnemonicEntryList& _rEntryList )
:rEntryList( _rEntryList )
{
}
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx
index 30094e439b5d..46628c6d7929 100644
--- a/vcl/source/window/openglwin.cxx
+++ b/vcl/source/window/openglwin.cxx
@@ -15,7 +15,7 @@
class OpenGLWindowImpl
{
public:
- OpenGLWindowImpl(vcl::Window* pWindow);
+ explicit OpenGLWindowImpl(vcl::Window* pWindow);
~OpenGLWindowImpl() { mxChildWindow.disposeAndClear(); }
OpenGLContext& getContext() { return maContext;}
private:
diff --git a/vcl/source/window/scrwnd.hxx b/vcl/source/window/scrwnd.hxx
index 2db56ce4d053..8ce1c6b3a131 100644
--- a/vcl/source/window/scrwnd.hxx
+++ b/vcl/source/window/scrwnd.hxx
@@ -69,7 +69,7 @@ protected:
public:
- ImplWheelWindow( vcl::Window* pParent );
+ explicit ImplWheelWindow( vcl::Window* pParent );
virtual ~ImplWheelWindow();
virtual void dispose() SAL_OVERRIDE;
diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx
index f7070e55445b..36f0ebcf6254 100644
--- a/vcl/unx/generic/app/i18n_status.cxx
+++ b/vcl/unx/generic/app/i18n_status.cxx
@@ -50,7 +50,7 @@ namespace vcl {
class StatusWindow : public WorkWindow
{
protected:
- StatusWindow( WinBits nWinBits );
+ explicit StatusWindow( WinBits nWinBits );
public:
virtual void setPosition( SalFrame* );
@@ -94,7 +94,7 @@ class XIMStatusWindow : public StatusWindow
DECL_LINK( DelayedShowHdl, void* );
public:
- XIMStatusWindow( bool bOn );
+ explicit XIMStatusWindow( bool bOn );
virtual ~XIMStatusWindow();
virtual void setPosition( SalFrame* ) SAL_OVERRIDE;
diff --git a/vcl/unx/generic/app/randrwrapper.cxx b/vcl/unx/generic/app/randrwrapper.cxx
index ecdfce34e736..321e29f92d49 100644
--- a/vcl/unx/generic/app/randrwrapper.cxx
+++ b/vcl/unx/generic/app/randrwrapper.cxx
@@ -49,7 +49,7 @@ class RandRWrapper
void initFromModule();
- RandRWrapper(Display*);
+ explicit RandRWrapper(Display*);
~RandRWrapper();
public:
static RandRWrapper& get(Display*);
@@ -176,7 +176,7 @@ class RandRWrapper
{
bool m_bValid;
- RandRWrapper(Display*);
+ explicit RandRWrapper(Display*);
public:
static RandRWrapper& get(Display*);
static void releaseWrapper();
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index e3239fde49df..31d7969107be 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -50,7 +50,7 @@ class NetWMAdaptor : public WMAdaptor
void initAtoms();
virtual bool isValid() const SAL_OVERRIDE;
public:
- NetWMAdaptor( SalDisplay* );
+ explicit NetWMAdaptor( SalDisplay* );
virtual ~NetWMAdaptor();
virtual void setWMName( X11SalFrame* pFrame, const OUString& rWMName ) const SAL_OVERRIDE;
@@ -78,7 +78,7 @@ class GnomeWMAdaptor : public WMAdaptor
void initAtoms();
virtual bool isValid() const SAL_OVERRIDE;
public:
- GnomeWMAdaptor( SalDisplay * );
+ explicit GnomeWMAdaptor( SalDisplay * );
virtual ~GnomeWMAdaptor();
virtual void maximizeFrame( X11SalFrame* pFrame, bool bHorizontal = true, bool bVertical = true ) const SAL_OVERRIDE;
diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx
index 5289ee437b0e..616b17fd05e0 100644
--- a/vcl/unx/generic/dtrans/X11_selection.hxx
+++ b/vcl/unx/generic/dtrans/X11_selection.hxx
@@ -228,7 +228,7 @@ namespace x11 {
::Window m_aRootWindow;
DropTargetEntry() : m_pTarget( NULL ), m_aRootWindow( None ) {}
- DropTargetEntry( DropTarget* pTarget ) :
+ explicit DropTargetEntry( DropTarget* pTarget ) :
m_pTarget( pTarget ),
m_aRootWindow( None )
{}
diff --git a/vcl/unx/generic/gdi/gcach_xpeer.hxx b/vcl/unx/generic/gdi/gcach_xpeer.hxx
index b31dfbf2c824..ecd21a7c8d2e 100644
--- a/vcl/unx/generic/gdi/gcach_xpeer.hxx
+++ b/vcl/unx/generic/gdi/gcach_xpeer.hxx
@@ -32,7 +32,7 @@ public:
class X11GlyphCache : public GlyphCache
{
public:
- X11GlyphCache( X11GlyphPeer& );
+ explicit X11GlyphCache( X11GlyphPeer& );
static X11GlyphCache& GetInstance();
static void KillInstance();
};
diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx
index 9b2b9d53d5b8..509ac1d0e771 100644
--- a/vcl/unx/generic/gdi/gdiimpl.hxx
+++ b/vcl/unx/generic/gdi/gdiimpl.hxx
@@ -101,7 +101,7 @@ private:
public:
- X11SalGraphicsImpl(X11SalGraphics& rParent);
+ explicit X11SalGraphicsImpl(X11SalGraphics& rParent);
virtual void freeResources() SAL_OVERRIDE;
diff --git a/vcl/unx/generic/gdi/openglx11cairotextrender.hxx b/vcl/unx/generic/gdi/openglx11cairotextrender.hxx
index ed2b79ce747d..c193937c8433 100644
--- a/vcl/unx/generic/gdi/openglx11cairotextrender.hxx
+++ b/vcl/unx/generic/gdi/openglx11cairotextrender.hxx
@@ -15,7 +15,7 @@
class OpenGLX11CairoTextRender : public X11CairoTextRender
{
public:
- OpenGLX11CairoTextRender(X11SalGraphics& rParent);
+ explicit OpenGLX11CairoTextRender(X11SalGraphics& rParent);
virtual cairo_t* getCairoContext() SAL_OVERRIDE;
virtual void getSurfaceOffset(double& nDX, double& nDY) SAL_OVERRIDE;
diff --git a/vcl/unx/generic/gdi/x11cairotextrender.hxx b/vcl/unx/generic/gdi/x11cairotextrender.hxx
index b029702ff577..c0c41928ceb6 100644
--- a/vcl/unx/generic/gdi/x11cairotextrender.hxx
+++ b/vcl/unx/generic/gdi/x11cairotextrender.hxx
@@ -37,7 +37,7 @@ protected:
size_t GetHeight() const;
public:
- X11CairoTextRender(X11SalGraphics& rParent);
+ explicit X11CairoTextRender(X11SalGraphics& rParent);
virtual GlyphCache& getPlatformGlyphCache() SAL_OVERRIDE;
virtual cairo_t* getCairoContext() SAL_OVERRIDE;
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index c1de3696f5c4..d32f60d42d0d 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -278,7 +278,7 @@ private:
OUString maFileName;
public:
- PPDDecompressStream( const OUString& rFile );
+ explicit PPDDecompressStream( const OUString& rFile );
~PPDDecompressStream();
bool IsOpen() const;
diff --git a/vcl/unx/gtk/a11y/atklistener.hxx b/vcl/unx/gtk/a11y/atklistener.hxx
index 3255bcf3b78d..a1380c4d5a84 100644
--- a/vcl/unx/gtk/a11y/atklistener.hxx
+++ b/vcl/unx/gtk/a11y/atklistener.hxx
@@ -32,7 +32,7 @@ typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::accessi
class AtkListener : public ::cppu::WeakImplHelper1< ::com::sun::star::accessibility::XAccessibleEventListener >
{
public:
- AtkListener(AtkObjectWrapper * pWrapper);
+ explicit AtkListener(AtkObjectWrapper * pWrapper);
// XEventListener
virtual void disposing( const ::com::sun::star::lang::EventObject& Source )
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index d47e35db9883..6c98ca6f72bf 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -447,7 +447,7 @@ namespace {
const OUString& rTitle;
public:
- FilterTitleMatch( const OUString& _rTitle ) : rTitle( _rTitle ) { }
+ explicit FilterTitleMatch( const OUString& _rTitle ) : rTitle( _rTitle ) { }
bool operator () ( const FilterEntry& _rEntry )
{
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 6eb604300276..39b44cd6a993 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -182,7 +182,7 @@ private:
std::vector<NWFWidgetData> mData;
public:
- WidgetDataVector(size_t nElems = 0) : mData( nElems ) {}
+ explicit WidgetDataVector(size_t nElems = 0) : mData( nElems ) {}
size_t size() const { return mData.size(); }
NWFWidgetData &operator [](size_t i) { return mData.at(i); }
NWFWidgetData &operator [](const SalX11Screen &s) { return mData.at(s.getXScreen()); }
@@ -363,7 +363,7 @@ class NWPixmapCache
int m_screen;
NWPixmapCacheData* pData;
public:
- NWPixmapCache( SalX11Screen nScreen );
+ explicit NWPixmapCache( SalX11Screen nScreen );
~NWPixmapCache();
void SetSize( int n)
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index 7adc88ab3073..d05f71b87a63 100644
--- a/vcl/unx/gtk/gdi/salprn-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx
@@ -61,7 +61,7 @@ using uno::UNO_QUERY;
class GtkPrintDialog
{
public:
- GtkPrintDialog(vcl::PrinterController& io_rController);
+ explicit GtkPrintDialog(vcl::PrinterController& io_rController);
bool run();
GtkPrinter* getPrinter() const
{
diff --git a/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx
index e134182d8d21..fdf01bdd60ee 100644
--- a/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx
+++ b/vcl/unx/gtk3/gdi/gtk3cairotextrender.hxx
@@ -19,7 +19,7 @@ protected:
GtkSalGraphics& mrParent;
public:
- GtkCairoTextRender(GtkSalGraphics& rParent);
+ explicit GtkCairoTextRender(GtkSalGraphics& rParent);
virtual GlyphCache& getPlatformGlyphCache() SAL_OVERRIDE;
virtual cairo_t* getCairoContext() SAL_OVERRIDE;
diff --git a/vcl/unx/kde/UnxFilePicker.hxx b/vcl/unx/kde/UnxFilePicker.hxx
index edf8be97162c..8371d0f06094 100644
--- a/vcl/unx/kde/UnxFilePicker.hxx
+++ b/vcl/unx/kde/UnxFilePicker.hxx
@@ -69,7 +69,7 @@ protected:
ResMgr *m_pResMgr;
public:
- UnxFilePicker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
+ explicit UnxFilePicker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
virtual ~UnxFilePicker();
// XComponent
diff --git a/vcl/unx/kde4/KDE4FilePicker.hxx b/vcl/unx/kde4/KDE4FilePicker.hxx
index 98e9af64f8bc..f2ac942887a2 100644
--- a/vcl/unx/kde4/KDE4FilePicker.hxx
+++ b/vcl/unx/kde4/KDE4FilePicker.hxx
@@ -79,7 +79,7 @@ protected:
bool allowRemoteUrls;
public:
- KDE4FilePicker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
+ explicit KDE4FilePicker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
virtual ~KDE4FilePicker();
// XFilePickerNotifier
diff --git a/vcl/unx/kde4/KDEData.hxx b/vcl/unx/kde4/KDEData.hxx
index b7099da161c0..af4f7f996eaa 100644
--- a/vcl/unx/kde4/KDEData.hxx
+++ b/vcl/unx/kde4/KDEData.hxx
@@ -25,7 +25,7 @@
class KDEData : public X11SalData
{
public:
- KDEData( SalInstance *pInstance )
+ explicit KDEData( SalInstance *pInstance )
: X11SalData( SAL_DATA_KDE4, pInstance ) {}
virtual ~KDEData();
diff --git a/vcl/unx/kde4/KDESalDisplay.hxx b/vcl/unx/kde4/KDESalDisplay.hxx
index f4a41467e238..ca95ac7402b1 100644
--- a/vcl/unx/kde4/KDESalDisplay.hxx
+++ b/vcl/unx/kde4/KDESalDisplay.hxx
@@ -24,7 +24,7 @@
class SalKDEDisplay : public SalX11Display
{
public:
- SalKDEDisplay( Display* pDisp );
+ explicit SalKDEDisplay( Display* pDisp );
virtual ~SalKDEDisplay();
static SalKDEDisplay* self();
virtual void Yield() SAL_OVERRIDE;
diff --git a/vcl/unx/kde4/KDESalInstance.hxx b/vcl/unx/kde4/KDESalInstance.hxx
index 5d042aa9862a..498af3b4b2bc 100644
--- a/vcl/unx/kde4/KDESalInstance.hxx
+++ b/vcl/unx/kde4/KDESalInstance.hxx
@@ -27,7 +27,7 @@ class SalFrame;
class KDESalInstance : public X11SalInstance
{
public:
- KDESalInstance( SalYieldMutex* pMutex ) : X11SalInstance( pMutex ) {}
+ explicit KDESalInstance( SalYieldMutex* pMutex ) : X11SalInstance( pMutex ) {}
virtual ~KDESalInstance() {}
virtual SalFrame* CreateFrame( SalFrame* pParent, sal_uLong nStyle ) SAL_OVERRIDE;
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 1ef22b274181..3fb511a810d0 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -118,7 +118,7 @@ public: // for ImplSalYield()
DWORD mnThreadId;
public:
- SalYieldMutex( WinSalInstance* pInstData );
+ explicit SalYieldMutex( WinSalInstance* pInstData );
virtual void acquire();
virtual void release();
diff --git a/vcl/win/source/gdi/cairo_win32_cairo.hxx b/vcl/win/source/gdi/cairo_win32_cairo.hxx
index 5dee0eaa3dd8..46a502416638 100644
--- a/vcl/win/source/gdi/cairo_win32_cairo.hxx
+++ b/vcl/win/source/gdi/cairo_win32_cairo.hxx
@@ -36,7 +36,7 @@ namespace cairo {
/// create surface on subarea of given drawable
Win32Surface( HDC hDC, int x, int y );
/// create surface for given bitmap data
- Win32Surface( const BitmapSystemData& rBmpData );
+ explicit Win32Surface( const BitmapSystemData& rBmpData );
// Surface interface
virtual CairoSharedPtr getCairo() const;
diff --git a/vcl/win/source/gdi/gdiimpl.hxx b/vcl/win/source/gdi/gdiimpl.hxx
index 2890664406be..2985f3bec7d0 100644
--- a/vcl/win/source/gdi/gdiimpl.hxx
+++ b/vcl/win/source/gdi/gdiimpl.hxx
@@ -48,7 +48,7 @@ private:
public:
- WinSalGraphicsImpl(WinSalGraphics& rParent);
+ explicit WinSalGraphicsImpl(WinSalGraphics& rParent);
virtual ~WinSalGraphicsImpl();
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index e7da7a91724b..8f5171ea064c 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -40,10 +40,10 @@ class DemoMtfWin : public WorkWindow
GDIMetaFile maMtf;
public:
- DemoMtfWin(OUString& aFileName)
+ explicit DemoMtfWin(const OUString& rFileName)
: WorkWindow(NULL, WB_APP | WB_STDWORK)
{
- SvFileStream aFileStream(aFileName, StreamMode::READ);
+ SvFileStream aFileStream(rFileName, StreamMode::READ);
if (aFileStream.IsOpen())
{