[Libreoffice-commits] core.git: sd/source

Noel Grandin noelgrandin at gmail.com
Sun Oct 25 22:47:27 PDT 2015


 sd/source/core/CustomAnimationEffect.cxx                                    |    6 +++---
 sd/source/core/PageListWatcher.hxx                                          |    6 +++---
 sd/source/core/annotations/Annotation.cxx                                   |    2 +-
 sd/source/core/annotations/AnnotationEnumeration.cxx                        |    2 +-
 sd/source/core/drawdoc3.cxx                                                 |    2 +-
 sd/source/core/stlpool.cxx                                                  |    2 +-
 sd/source/core/stlsheet.cxx                                                 |    2 +-
 sd/source/core/text/textapi.cxx                                             |    2 +-
 sd/source/filter/eppt/eppt.hxx                                              |    2 +-
 sd/source/filter/eppt/epptbase.hxx                                          |    6 +++---
 sd/source/filter/eppt/grouptable.hxx                                        |    4 ++--
 sd/source/filter/eppt/pptx-text.cxx                                         |    2 +-
 sd/source/filter/grf/sdgrffilter.cxx                                        |    2 +-
 sd/source/filter/html/buttonset.cxx                                         |    2 +-
 sd/source/filter/html/htmlex.cxx                                            |    2 +-
 sd/source/filter/html/htmlex.hxx                                            |    2 +-
 sd/source/filter/ppt/ppt97animations.hxx                                    |    2 +-
 sd/source/filter/ppt/propread.hxx                                           |    2 +-
 sd/source/filter/xml/sdtransform.cxx                                        |    2 +-
 sd/source/ui/animations/CustomAnimationDialog.hxx                           |    4 ++--
 sd/source/ui/animations/CustomAnimationList.cxx                             |    4 ++--
 sd/source/ui/animations/CustomAnimationList.hxx                             |    2 +-
 sd/source/ui/animations/SlideTransitionPane.cxx                             |    2 +-
 sd/source/ui/animations/motionpathtag.cxx                                   |    2 +-
 sd/source/ui/annotations/annotationmanagerimpl.hxx                          |    2 +-
 sd/source/ui/dlg/RemoteDialog.hxx                                           |    2 +-
 sd/source/ui/dlg/RemoteDialogClientBox.hxx                                  |    4 ++--
 sd/source/ui/dlg/dlgass.cxx                                                 |    2 +-
 sd/source/ui/dlg/headerfooterdlg.cxx                                        |    2 +-
 sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx |    2 +-
 sd/source/ui/framework/configuration/ConfigurationUpdater.cxx               |    2 +-
 sd/source/ui/framework/configuration/ResourceFactoryManager.hxx             |    2 +-
 sd/source/ui/framework/factories/BasicPaneFactory.hxx                       |    2 +-
 sd/source/ui/framework/factories/BasicToolBarFactory.hxx                    |    2 +-
 sd/source/ui/framework/factories/BasicViewFactory.hxx                       |    2 +-
 sd/source/ui/framework/factories/PresentationFactory.cxx                    |    4 ++--
 sd/source/ui/framework/module/CenterViewFocusModule.hxx                     |    2 +-
 sd/source/ui/framework/module/ShellStackGuard.hxx                           |    2 +-
 sd/source/ui/framework/module/ToolBarModule.hxx                             |    2 +-
 sd/source/ui/framework/tools/FrameworkHelper.cxx                            |    6 +++---
 sd/source/ui/inc/DrawController.hxx                                         |    4 ++--
 sd/source/ui/inc/TabControl.hxx                                             |    2 +-
 sd/source/ui/inc/optsitem.hxx                                               |   10 +++++-----
 sd/source/ui/presenter/PresenterHelper.hxx                                  |    2 +-
 sd/source/ui/presenter/PresenterPreviewCache.hxx                            |    2 +-
 sd/source/ui/remotecontrol/BluetoothServer.hxx                              |    2 +-
 sd/source/ui/remotecontrol/BufferedStreamSocket.hxx                         |    4 ++--
 sd/source/ui/remotecontrol/Communicator.hxx                                 |    2 +-
 sd/source/ui/remotecontrol/Receiver.hxx                                     |    2 +-
 sd/source/ui/remotecontrol/Transmitter.hxx                                  |    2 +-
 sd/source/ui/sidebar/MasterPageContainerFiller.hxx                          |    2 +-
 sd/source/ui/sidebar/MasterPageContainerProviders.hxx                       |    6 +++---
 sd/source/ui/sidebar/MasterPageContainerQueue.cxx                           |    4 ++--
 sd/source/ui/sidebar/MasterPageContainerQueue.hxx                           |    2 +-
 sd/source/ui/slideshow/slideshowimpl.hxx                                    |    2 +-
 sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx                           |    2 +-
 sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx                      |    2 +-
 sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx                      |    4 ++--
 sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx                          |    2 +-
 sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx                          |    2 +-
 sd/source/ui/slidesorter/controller/SlsClipboard.cxx                        |    2 +-
 sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx               |    2 +-
 sd/source/ui/slidesorter/controller/SlsListener.hxx                         |    2 +-
 sd/source/ui/view/ViewShellBase.cxx                                         |    4 ++--
 64 files changed, 88 insertions(+), 88 deletions(-)

New commits:
commit e6dce260833ecddf0da9c85132665a7759fc1f17
Author: Noel Grandin <noelgrandin at gmail.com>
Date:   Sun Oct 25 17:33:13 2015 +0200

    cppcheck:noExplicitConstructor
    
    Change-Id: I06f33af242c60e0349417ceab3ca4a6d47cd402d
    Reviewed-on: https://gerrit.libreoffice.org/19589
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index 60b4796..87df6e0 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -105,7 +105,7 @@ namespace sd
 class MainSequenceChangeGuard
 {
 public:
-    MainSequenceChangeGuard( EffectSequenceHelper* pSequence )
+    explicit MainSequenceChangeGuard( EffectSequenceHelper* pSequence )
     {
         mpMainSequence = dynamic_cast< MainSequence* >( pSequence );
         if( mpMainSequence == 0 )
@@ -2739,7 +2739,7 @@ void EffectSequenceHelper::setTextGroupingAuto( CustomAnimationTextGroupPtr pTex
 
 struct ImplStlTextGroupSortHelper
 {
-    ImplStlTextGroupSortHelper( bool bReverse ) : mbReverse( bReverse ) {};
+    explicit ImplStlTextGroupSortHelper( bool bReverse ) : mbReverse( bReverse ) {};
     bool operator()( const CustomAnimationEffectPtr& p1, const CustomAnimationEffectPtr& p2 );
     bool mbReverse;
     sal_Int32 getTargetParagraph( const CustomAnimationEffectPtr& p1 );
@@ -2974,7 +2974,7 @@ void EffectSequenceHelper::processAfterEffect( const Reference< XAnimationNode >
 class AnimationChangeListener : public cppu::WeakImplHelper< XChangesListener >
 {
 public:
-    AnimationChangeListener( MainSequence* pMainSequence ) : mpMainSequence( pMainSequence ) {}
+    explicit AnimationChangeListener( MainSequence* pMainSequence ) : mpMainSequence( pMainSequence ) {}
 
     virtual void SAL_CALL changesOccurred( const ::com::sun::star::util::ChangesEvent& Event ) throw (RuntimeException, std::exception) override;
     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (RuntimeException, std::exception) override;
diff --git a/sd/source/core/PageListWatcher.hxx b/sd/source/core/PageListWatcher.hxx
index d5e0679..1459af7f 100644
--- a/sd/source/core/PageListWatcher.hxx
+++ b/sd/source/core/PageListWatcher.hxx
@@ -54,7 +54,7 @@ protected:
     virtual SdPage* ImpGetPage (sal_uInt32 nIndex) const = 0;
 
 public:
-    ImpPageListWatcher(const SdrModel& rModel);
+    explicit ImpPageListWatcher(const SdrModel& rModel);
     virtual ~ImpPageListWatcher();
 
     void Invalidate() { mbPageListValid = false; }
@@ -70,7 +70,7 @@ protected:
     virtual SdPage* ImpGetPage(sal_uInt32 nIndex) const override;
 
 public:
-    ImpDrawPageListWatcher(const SdrModel& rModel);
+    explicit ImpDrawPageListWatcher(const SdrModel& rModel);
     virtual ~ImpDrawPageListWatcher();
 };
 
@@ -81,7 +81,7 @@ protected:
     virtual SdPage* ImpGetPage(sal_uInt32 nIndex) const override;
 
 public:
-    ImpMasterPageListWatcher(const SdrModel& rModel);
+    explicit ImpMasterPageListWatcher(const SdrModel& rModel);
     virtual ~ImpMasterPageListWatcher();
 };
 
diff --git a/sd/source/core/annotations/Annotation.cxx b/sd/source/core/annotations/Annotation.cxx
index 66d3be9..3fa6a63 100644
--- a/sd/source/core/annotations/Annotation.cxx
+++ b/sd/source/core/annotations/Annotation.cxx
@@ -148,7 +148,7 @@ struct AnnotationData
 class UndoAnnotation : public SdrUndoAction
 {
 public:
-    UndoAnnotation( Annotation& rAnnotation );
+    explicit UndoAnnotation( Annotation& rAnnotation );
 
     virtual void Undo() override;
     virtual void Redo() override;
diff --git a/sd/source/core/annotations/AnnotationEnumeration.cxx b/sd/source/core/annotations/AnnotationEnumeration.cxx
index 4344ff8..1ee21e5 100644
--- a/sd/source/core/annotations/AnnotationEnumeration.cxx
+++ b/sd/source/core/annotations/AnnotationEnumeration.cxx
@@ -38,7 +38,7 @@ namespace sd {
 class AnnotationEnumeration: public ::cppu::WeakImplHelper< css::office::XAnnotationEnumeration >, private boost::noncopyable
 {
 public:
-    AnnotationEnumeration( const AnnotationVector& rAnnotations );
+    explicit AnnotationEnumeration( const AnnotationVector& rAnnotations );
 
     // ::com::sun::star::office::XAnnotationEnumeration:
     virtual sal_Bool SAL_CALL hasMoreElements() throw (css::uno::RuntimeException, std::exception) override;
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 7785466..e8fb7f0 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -71,7 +71,7 @@ using namespace ::com::sun::star;
 class InsertBookmarkAsPage_FindDuplicateLayouts
 {
 public:
-    InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<OUString> &rLayoutsToTransfer )
+    explicit InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<OUString> &rLayoutsToTransfer )
         : mrLayoutsToTransfer(rLayoutsToTransfer) {}
     void operator()( SdDrawDocument&, SdPage*, bool, SdDrawDocument* );
 private:
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 212a81a..629df98 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -620,7 +620,7 @@ namespace
 
 struct HasFamilyPredicate : svl::StyleSheetPredicate
 {
-    HasFamilyPredicate(SfxStyleFamily eFamily)
+    explicit HasFamilyPredicate(SfxStyleFamily eFamily)
     : meFamily(eFamily) {;}
 
     bool Check(const SfxStyleSheetBase& sheet) override
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 43436e6..64bba51 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -104,7 +104,7 @@ static SvxItemPropertySet& GetStylePropertySet()
 class ModifyListenerForewarder : public SfxListener
 {
 public:
-    ModifyListenerForewarder( SdStyleSheet* pStyleSheet );
+    explicit ModifyListenerForewarder( SdStyleSheet* pStyleSheet );
 
     virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
 
diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx
index f76bbe3..8625592 100644
--- a/sd/source/core/text/textapi.cxx
+++ b/sd/source/core/text/textapi.cxx
@@ -100,7 +100,7 @@ class TextAPIEditSource : public SvxEditSource
     explicit            TextAPIEditSource( const TextAPIEditSource& rSource );
 
 public:
-                        TextAPIEditSource(SdDrawDocument* pDoc);
+                        explicit TextAPIEditSource(SdDrawDocument* pDoc);
     virtual             ~TextAPIEditSource();
 
     void                Dispose();
diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx
index c2857bf..49d285d 100644
--- a/sd/source/filter/eppt/eppt.hxx
+++ b/sd/source/filter/eppt/eppt.hxx
@@ -139,7 +139,7 @@ struct TextRuleEntry
     int                 nPageNumber;
     SvMemoryStream*     pOut;
 
-    TextRuleEntry( int nPg ) :
+    explicit TextRuleEntry( int nPg ) :
         nPageNumber( nPg ),
         pOut ( NULL ){};
 
diff --git a/sd/source/filter/eppt/epptbase.hxx b/sd/source/filter/eppt/epptbase.hxx
index 03cd717..505d8a8 100644
--- a/sd/source/filter/eppt/epptbase.hxx
+++ b/sd/source/filter/eppt/epptbase.hxx
@@ -101,7 +101,7 @@ class PropValue
 
         PropValue() {}
 
-        PropValue( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet )
+        explicit PropValue( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet )
             : mXPropSet( rXPropSet )
         {}
 
@@ -158,7 +158,7 @@ struct FontCollectionEntry
                                 ImplInit( rName );
                             };
 
-        FontCollectionEntry( const OUString& rName ) :
+        explicit FontCollectionEntry( const OUString& rName ) :
                             Scaling ( 1.0 ),
                             Family  ( 0 ),
                             Pitch   ( 0 ),
@@ -251,7 +251,7 @@ struct PPTExCharSheet
 {
                 PPTExCharLevel  maCharLevel[ 5 ];
 
-                PPTExCharSheet( int nInstance );
+                explicit PPTExCharSheet( int nInstance );
 
                 void    SetStyleSheet( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > &,
                                         FontCollection& rFontCollection, int nLevel );
diff --git a/sd/source/filter/eppt/grouptable.hxx b/sd/source/filter/eppt/grouptable.hxx
index ae6c594..8fd4f12 100644
--- a/sd/source/filter/eppt/grouptable.hxx
+++ b/sd/source/filter/eppt/grouptable.hxx
@@ -28,14 +28,14 @@ struct GroupEntry
     sal_uInt32                  mnCount;
     ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >           mXIndexAccess;
 
-    GroupEntry( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > & rIndex )
+    explicit GroupEntry( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > & rIndex )
     {
         mXIndexAccess = rIndex;
         mnCount =mXIndexAccess->getCount();
         mnCurrentPos = 0;
     };
 
-    GroupEntry( sal_uInt32 nCount )
+    explicit GroupEntry( sal_uInt32 nCount )
     {
         mnCount = nCount;
         mnCurrentPos = 0;
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index 4bcab49..e4790a1 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -1291,7 +1291,7 @@ struct ImplTextObj
     bool        mbHasExtendedBullets;
     bool        mbFixedCellHeightUsed;
 
-    ImplTextObj( int nInstance );
+    explicit ImplTextObj( int nInstance );
     ~ImplTextObj();
 };
 
diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx
index 3a9f264..c0651a5 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -91,7 +91,7 @@ class SdGRFFilter_ImplInteractionHdl : public ::cppu::WeakImplHelper< com::sun::
 
     public:
 
-    SdGRFFilter_ImplInteractionHdl( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction ) :
+    explicit SdGRFFilter_ImplInteractionHdl( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction ) :
         m_xInter( xInteraction ),
         nFilterError( GRFILTER_OK )
         {}
diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx
index 51b52bf..bee5e41 100644
--- a/sd/source/filter/html/buttonset.cxx
+++ b/sd/source/filter/html/buttonset.cxx
@@ -48,7 +48,7 @@ using namespace ::com::sun::star::lang;
 class ButtonsImpl
 {
 public:
-    ButtonsImpl( const OUString& rURL );
+    explicit ButtonsImpl( const OUString& rURL );
 
     Reference< XInputStream > getInputStream( const OUString& rName );
 
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index 12d4786..56f4caf 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -159,7 +159,7 @@ private:
     OUString maTarget;
 
 public:
-    HtmlState( Color aDefColor );
+    explicit HtmlState( Color aDefColor );
 
     OUString SetWeight( bool bWeight );
     OUString SetItalic( bool bItalic );
diff --git a/sd/source/filter/html/htmlex.hxx b/sd/source/filter/html/htmlex.hxx
index ed6b409..475d53d 100644
--- a/sd/source/filter/html/htmlex.hxx
+++ b/sd/source/filter/html/htmlex.hxx
@@ -66,7 +66,7 @@ private:
     OUString  maURL2;
 
 public:
-                    HtmlErrorContext(vcl::Window *pWin=0);
+                    explicit HtmlErrorContext(vcl::Window *pWin=0);
                     virtual ~HtmlErrorContext() {};
 
     virtual bool    GetString( sal_uLong nErrId, OUString& rCtxStr ) override;
diff --git a/sd/source/filter/ppt/ppt97animations.hxx b/sd/source/filter/ppt/ppt97animations.hxx
index 6726781..34118da 100644
--- a/sd/source/filter/ppt/ppt97animations.hxx
+++ b/sd/source/filter/ppt/ppt97animations.hxx
@@ -84,7 +84,7 @@ class Ppt97Animation
 {
 
 public: //public methods
-    Ppt97Animation( SvStream& rIn );
+    explicit Ppt97Animation( SvStream& rIn );
 
     Ppt97Animation( const Ppt97Animation& rAnimation );
     Ppt97Animation& operator= ( const Ppt97Animation& rAnimation );
diff --git a/sd/source/filter/ppt/propread.hxx b/sd/source/filter/ppt/propread.hxx
index d4d6ba3..095e831 100644
--- a/sd/source/filter/ppt/propread.hxx
+++ b/sd/source/filter/ppt/propread.hxx
@@ -126,7 +126,7 @@ class Section
         void                    AddProperty( sal_uInt32 nId, const sal_uInt8* pBuf, sal_uInt32 nBufSize );
 
     public:
-                                Section( const sal_uInt8* pFMTID );
+                                explicit Section( const sal_uInt8* pFMTID );
                                 Section( const Section& rSection );
 
         Section&                operator=( const Section& rSection );
diff --git a/sd/source/filter/xml/sdtransform.cxx b/sd/source/filter/xml/sdtransform.cxx
index e00cc5e..f87a333 100644
--- a/sd/source/filter/xml/sdtransform.cxx
+++ b/sd/source/filter/xml/sdtransform.cxx
@@ -39,7 +39,7 @@ using namespace ::com::sun::star::style;
 class SdTransformOOo2xDocument
 {
 public:
-    SdTransformOOo2xDocument( SdDrawDocument& rDocument );
+    explicit SdTransformOOo2xDocument( SdDrawDocument& rDocument );
 
     void transform();
 
diff --git a/sd/source/ui/animations/CustomAnimationDialog.hxx b/sd/source/ui/animations/CustomAnimationDialog.hxx
index 0f82354..757153b 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.hxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.hxx
@@ -97,7 +97,7 @@ const sal_Int32 nPropertyTypeScale = 21;
 class PropertySubControl
 {
 public:
-    PropertySubControl( sal_Int32 nType ) : mnType( nType ) {}
+    explicit PropertySubControl( sal_Int32 nType ) : mnType( nType ) {}
     virtual ~PropertySubControl();
 
     virtual             ::com::sun::star::uno::Any getValue() = 0;
@@ -121,7 +121,7 @@ protected:
 class PropertyControl : public ListBox
 {
 public:
-    PropertyControl( vcl::Window* pParent );
+    explicit PropertyControl( vcl::Window* pParent );
     virtual ~PropertyControl();
     virtual void dispose() override;
 
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 9a24a8c..a423945 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -318,7 +318,7 @@ class CustomAnimationListEntry : public SvTreeListEntry
 {
 public:
     CustomAnimationListEntry();
-    CustomAnimationListEntry( CustomAnimationEffectPtr pEffect );
+    explicit CustomAnimationListEntry( CustomAnimationEffectPtr pEffect );
     virtual ~CustomAnimationListEntry();
 
     CustomAnimationEffectPtr getEffect() const { return mpEffect; }
@@ -530,7 +530,7 @@ void CustomAnimationList::update( MainSequencePtr pMainSequence )
 
 struct stl_append_effect_func : public std::unary_function<CustomAnimationEffectPtr, void>
 {
-    stl_append_effect_func( CustomAnimationList& rList ) : mrList( rList ) {}
+    explicit stl_append_effect_func( CustomAnimationList& rList ) : mrList( rList ) {}
     void operator()(CustomAnimationEffectPtr pEffect);
     CustomAnimationList& mrList;
 };
diff --git a/sd/source/ui/animations/CustomAnimationList.hxx b/sd/source/ui/animations/CustomAnimationList.hxx
index da5ad00..55287fb 100644
--- a/sd/source/ui/animations/CustomAnimationList.hxx
+++ b/sd/source/ui/animations/CustomAnimationList.hxx
@@ -50,7 +50,7 @@ class CustomAnimationList : public SvTreeListBox, public ISequenceListener
     friend struct stl_append_effect_func;
 
 public:
-    CustomAnimationList( vcl::Window* pParent );
+    explicit CustomAnimationList( vcl::Window* pParent );
     virtual ~CustomAnimationList();
     virtual void dispose() override;
 
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index 5493953..21df5d0 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -375,7 +375,7 @@ OUString lcl_getSoundFileURL(
 
 struct lcl_AppendSoundToListBox : public ::std::unary_function< OUString, void >
 {
-    lcl_AppendSoundToListBox( ListBox*  rListBox ) :
+    explicit lcl_AppendSoundToListBox( ListBox*  rListBox ) :
             mrListBox( rListBox )
     {}
 
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index eab900d..cf4dca4 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -206,7 +206,7 @@ public:
         maPathPolyPolygon(rPathPolyPolygon)
     {}
 
-    PathDragObjOwn(SdrDragView& rNewView)
+    explicit PathDragObjOwn(SdrDragView& rNewView)
     :   SdrDragObjOwn(rNewView),
         maPathPolyPolygon()
     {}
diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx
index d2c1d75..bc2f73f 100644
--- a/sd/source/ui/annotations/annotationmanagerimpl.hxx
+++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx
@@ -50,7 +50,7 @@ typedef ::cppu::WeakComponentImplHelper <
 class AnnotationManagerImpl : private ::cppu::BaseMutex, public AnnotationManagerImplBase
 {
 public:
-    AnnotationManagerImpl( ViewShellBase& rViewShellBase );
+    explicit AnnotationManagerImpl( ViewShellBase& rViewShellBase );
 
     void init();
 
diff --git a/sd/source/ui/dlg/RemoteDialog.hxx b/sd/source/ui/dlg/RemoteDialog.hxx
index cf84cb9..9d2b072 100644
--- a/sd/source/ui/dlg/RemoteDialog.hxx
+++ b/sd/source/ui/dlg/RemoteDialog.hxx
@@ -32,7 +32,7 @@ private:
     DECL_LINK_TYPED( CloseHdl, SystemWindow&, void );
     DECL_LINK_TYPED( CloseClickHdl, Button*, void );
 public:
-    RemoteDialog( vcl::Window* pWindow );
+    explicit RemoteDialog( vcl::Window* pWindow );
     virtual ~RemoteDialog();
     virtual void dispose() override;
 };
diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.hxx b/sd/source/ui/dlg/RemoteDialogClientBox.hxx
index 38b7b4e..7f4de8f 100644
--- a/sd/source/ui/dlg/RemoteDialogClientBox.hxx
+++ b/sd/source/ui/dlg/RemoteDialogClientBox.hxx
@@ -59,7 +59,7 @@ struct ClientBoxEntry
     bool m_bActive :1;
     std::shared_ptr<ClientInfo> m_pClientInfo;
 
-    ClientBoxEntry(std::shared_ptr<ClientInfo> pClientInfo);
+    explicit ClientBoxEntry(std::shared_ptr<ClientInfo> pClientInfo);
    ~ClientBoxEntry();
 
 };
@@ -73,7 +73,7 @@ class ClientRemovedListener : public ::cppu::WeakImplHelper<css::lang::XEventLis
 
 public:
 
-    ClientRemovedListener(ClientBox *pParent)
+    explicit ClientRemovedListener(ClientBox *pParent)
     {
         m_pParent = pParent;
     }
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index 1ee7905..726ff7a 100644
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -93,7 +93,7 @@ public:
 class NextButton
 {
 public:
-    NextButton (vcl::Window* pParent);
+    explicit NextButton (vcl::Window* pParent);
 
     void ForceFocusEventBroadcast();
     void SetClickHdl (const Link<Button*,void>& rLink);
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 01784bb..2beecae 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -75,7 +75,7 @@ private:
     void Paint(vcl::RenderContext& rRenderContext, SdrTextObj* pObj, bool bVisible, bool bDotted = false);
 
 public:
-    PresLayoutPreview(vcl::Window* pParent);
+    explicit PresLayoutPreview(vcl::Window* pParent);
     virtual ~PresLayoutPreview();
 
     virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override;
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx
index 049a870..c1cc172 100644
--- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx
+++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx
@@ -43,7 +43,7 @@ class ConfigurationControllerBroadcaster
 public:
     /** The given controller is used as origin of thrown exceptions.
     */
-    ConfigurationControllerBroadcaster (
+    explicit ConfigurationControllerBroadcaster (
         const css::uno::Reference<
             css::drawing::framework::XConfigurationController>& rxController);
 
diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
index e9e23f0..9d110e1 100644
--- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
+++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx
@@ -50,7 +50,7 @@ namespace sd { namespace framework {
 class ConfigurationUpdaterLock
 {
 public:
-    ConfigurationUpdaterLock (ConfigurationUpdater& rUpdater)
+    explicit ConfigurationUpdaterLock (ConfigurationUpdater& rUpdater)
         : mrUpdater(rUpdater) { mrUpdater.LockUpdates(); }
     ~ConfigurationUpdaterLock() { mrUpdater.UnlockUpdates(); }
 private:
diff --git a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx
index ffcf61e..6152e78 100644
--- a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx
+++ b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx
@@ -39,7 +39,7 @@ namespace sd { namespace framework {
 class ResourceFactoryManager
 {
 public:
-    ResourceFactoryManager (
+    explicit ResourceFactoryManager (
         const css::uno::Reference<css::drawing::framework::XControllerManager>& rxManager);
 
     ~ResourceFactoryManager();
diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.hxx b/sd/source/ui/framework/factories/BasicPaneFactory.hxx
index a91bee8..273e74e 100644
--- a/sd/source/ui/framework/factories/BasicPaneFactory.hxx
+++ b/sd/source/ui/framework/factories/BasicPaneFactory.hxx
@@ -64,7 +64,7 @@ class BasicPaneFactory
       public BasicPaneFactoryInterfaceBase
 {
 public:
-    BasicPaneFactory (
+    explicit BasicPaneFactory (
         const css::uno::Reference<css::uno::XComponentContext>& rxContext);
     virtual ~BasicPaneFactory();
 
diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx
index d44a5d8..4a79431 100644
--- a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx
+++ b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx
@@ -56,7 +56,7 @@ class BasicToolBarFactory
       public BasicToolBarFactoryInterfaceBase
 {
 public:
-    BasicToolBarFactory (
+    explicit BasicToolBarFactory (
         const css::uno::Reference<com::sun::star::uno::XComponentContext>& rxContext);
     virtual ~BasicToolBarFactory();
 
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx
index 2fc4658..1d6eecc 100644
--- a/sd/source/ui/framework/factories/BasicViewFactory.hxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx
@@ -71,7 +71,7 @@ class BasicViewFactory
       public BasicViewFactoryInterfaceBase
 {
 public:
-    BasicViewFactory (
+    explicit BasicViewFactory (
         const css::uno::Reference<css::uno::XComponentContext>& rxContext);
     virtual ~BasicViewFactory();
 
diff --git a/sd/source/ui/framework/factories/PresentationFactory.cxx b/sd/source/ui/framework/factories/PresentationFactory.cxx
index 8a9e402..c2efde5 100644
--- a/sd/source/ui/framework/factories/PresentationFactory.cxx
+++ b/sd/source/ui/framework/factories/PresentationFactory.cxx
@@ -46,7 +46,7 @@ class PresentationFactoryProvider
       public PresentationFactoryProviderInterfaceBase
 {
 public:
-    PresentationFactoryProvider (const Reference<XComponentContext>& rxContext);
+    explicit PresentationFactoryProvider (const Reference<XComponentContext>& rxContext);
     virtual ~PresentationFactoryProvider();
 
     virtual void SAL_CALL disposing() override;
@@ -69,7 +69,7 @@ class PresentationView
       public PresentationViewInterfaceBase
 {
 public:
-    PresentationView (const Reference<XResourceId>& rxViewId)
+    explicit PresentationView (const Reference<XResourceId>& rxViewId)
         : PresentationViewInterfaceBase(maMutex),mxResourceId(rxViewId) {};
     virtual ~PresentationView() {};
 
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
index deaf4c2..8cf9dd0 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
@@ -54,7 +54,7 @@ class CenterViewFocusModule
       public CenterViewFocusModuleInterfaceBase
 {
 public:
-    CenterViewFocusModule (
+    explicit CenterViewFocusModule (
         ::com::sun::star::uno::Reference<com::sun::star::frame::XController>& rxController);
     virtual ~CenterViewFocusModule();
 
diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx
index 125087f..9e4b738 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.hxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.hxx
@@ -64,7 +64,7 @@ class ShellStackGuard
       public ShellStackGuardInterfaceBase
 {
 public:
-    ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController);
+    explicit ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController);
     virtual ~ShellStackGuard();
 
     virtual void SAL_CALL disposing() override;
diff --git a/sd/source/ui/framework/module/ToolBarModule.hxx b/sd/source/ui/framework/module/ToolBarModule.hxx
index 33a2507..876362f 100644
--- a/sd/source/ui/framework/module/ToolBarModule.hxx
+++ b/sd/source/ui/framework/module/ToolBarModule.hxx
@@ -54,7 +54,7 @@ public:
         @param rxController
             This is the access point to the drawing framework.
     */
-    ToolBarModule (
+    explicit ToolBarModule (
         const css::uno::Reference<css::frame::XController>& rxController);
     virtual ~ToolBarModule();
 
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index 1d08165..1e19d65 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -168,7 +168,7 @@ namespace {
     class FrameworkHelperResourceIdFilter
     {
     public:
-        FrameworkHelperResourceIdFilter (
+        explicit FrameworkHelperResourceIdFilter (
             const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId);
         bool operator() (const css::drawing::framework::ConfigurationChangeEvent& rEvent)
         { return mxResourceId.is() && rEvent.ResourceId.is()
@@ -296,7 +296,7 @@ class FrameworkHelper::DisposeListener
       public FrameworkHelperDisposeListenerInterfaceBase
 {
 public:
-    DisposeListener (const ::std::shared_ptr<FrameworkHelper>& rpHelper);
+    explicit DisposeListener (const ::std::shared_ptr<FrameworkHelper>& rpHelper);
     virtual ~DisposeListener();
 
     virtual void SAL_CALL disposing() override;
@@ -650,7 +650,7 @@ void FrameworkHelper::RunOnResourceActivation(
 class FlagUpdater
 {
 public:
-    FlagUpdater (bool& rFlag) : mrFlag(rFlag) {}
+    explicit FlagUpdater (bool& rFlag) : mrFlag(rFlag) {}
     void operator() (bool) const {mrFlag = true;}
 private:
     bool& mrFlag;
diff --git a/sd/source/ui/inc/DrawController.hxx b/sd/source/ui/inc/DrawController.hxx
index 3af159e..96e5a73 100644
--- a/sd/source/ui/inc/DrawController.hxx
+++ b/sd/source/ui/inc/DrawController.hxx
@@ -57,7 +57,7 @@ typedef ::cppu::ImplInheritanceHelper <
 class BroadcastHelperOwner
 {
 public:
-    BroadcastHelperOwner (::osl::Mutex& rMutex) : maBroadcastHelper(rMutex) {};
+    explicit BroadcastHelperOwner (::osl::Mutex& rMutex) : maBroadcastHelper(rMutex) {};
     ::cppu::OBroadcastHelper maBroadcastHelper;
 };
 
@@ -97,7 +97,7 @@ public:
 
     /** Create a new DrawController object for the given ViewShellBase.
     */
-    DrawController (ViewShellBase& rBase) throw();
+    explicit DrawController (ViewShellBase& rBase) throw();
 
     virtual ~DrawController() throw();
 
diff --git a/sd/source/ui/inc/TabControl.hxx b/sd/source/ui/inc/TabControl.hxx
index fe0d921..6054b44 100644
--- a/sd/source/ui/inc/TabControl.hxx
+++ b/sd/source/ui/inc/TabControl.hxx
@@ -84,7 +84,7 @@ private:
     class TabControlTransferable : public TransferableHelper
     {
     public:
-        TabControlTransferable( TabControl& rParent ) :
+        explicit TabControlTransferable( TabControl& rParent ) :
             mrParent( rParent ) {}
     private:
 
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx
index c55ac30..d50bad6 100644
--- a/sd/source/ui/inc/optsitem.hxx
+++ b/sd/source/ui/inc/optsitem.hxx
@@ -144,7 +144,7 @@ class SD_DLLPUBLIC SdOptionsLayoutItem : public SfxPoolItem
 {
 public:
 
-                            SdOptionsLayoutItem( sal_uInt16 nWhich);
+                            explicit SdOptionsLayoutItem( sal_uInt16 nWhich);
                             SdOptionsLayoutItem( sal_uInt16 nWhich, SdOptions* pOpts, ::sd::FrameView* pView = NULL );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const override;
@@ -320,7 +320,7 @@ class SD_DLLPUBLIC SdOptionsMiscItem : public SfxPoolItem
 {
 public:
 
-                            SdOptionsMiscItem( sal_uInt16 nWhich);
+                            explicit SdOptionsMiscItem( sal_uInt16 nWhich);
                             SdOptionsMiscItem( sal_uInt16 nWhich, SdOptions* pOpts, ::sd::FrameView* pView = NULL );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const override;
@@ -389,7 +389,7 @@ class SD_DLLPUBLIC SdOptionsSnapItem : public SfxPoolItem
 {
 public:
 
-                            SdOptionsSnapItem( sal_uInt16 nWhich);
+                            explicit SdOptionsSnapItem( sal_uInt16 nWhich);
                             SdOptionsSnapItem( sal_uInt16 nWhich, SdOptions* pOpts, ::sd::FrameView* pView = NULL );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const override;
@@ -562,7 +562,7 @@ class SD_DLLPUBLIC SdOptionsPrintItem : public SfxPoolItem
 {
 public:
 
-                            SdOptionsPrintItem( sal_uInt16 nWhich);
+                            explicit SdOptionsPrintItem( sal_uInt16 nWhich);
                             SdOptionsPrintItem( sal_uInt16 nWhich, SdOptions* pOpts, ::sd::FrameView* pView = NULL );
 
     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const override;
@@ -583,7 +583,7 @@ class SdOptions : public SdOptionsLayout, public SdOptionsContents,
 {
 public:
 
-                        SdOptions( sal_uInt16 nConfigId );
+                        explicit SdOptions( sal_uInt16 nConfigId );
                         virtual ~SdOptions();
 
     void                StoreConfig();
diff --git a/sd/source/ui/presenter/PresenterHelper.hxx b/sd/source/ui/presenter/PresenterHelper.hxx
index d03e7c2..0abe086 100644
--- a/sd/source/ui/presenter/PresenterHelper.hxx
+++ b/sd/source/ui/presenter/PresenterHelper.hxx
@@ -45,7 +45,7 @@ class PresenterHelper
       public PresenterHelperInterfaceBase
 {
 public:
-    PresenterHelper (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
+    explicit PresenterHelper (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
     virtual ~PresenterHelper();
 
     // XInitialize
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.hxx b/sd/source/ui/presenter/PresenterPreviewCache.hxx
index aa62b20..6424185 100644
--- a/sd/source/ui/presenter/PresenterPreviewCache.hxx
+++ b/sd/source/ui/presenter/PresenterPreviewCache.hxx
@@ -46,7 +46,7 @@ class PresenterPreviewCache
       public PresenterPreviewCacheInterfaceBase
 {
 public:
-    PresenterPreviewCache (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
+    explicit PresenterPreviewCache (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
     virtual ~PresenterPreviewCache();
 
     // XInitialize
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.hxx b/sd/source/ui/remotecontrol/BluetoothServer.hxx
index 8a85194..ac0fe3c 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.hxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.hxx
@@ -40,7 +40,7 @@ namespace sd
         void addCommunicator( Communicator* pCommunicator );
 #endif
     private:
-        BluetoothServer( std::vector<Communicator*>* pCommunicators );
+        explicit BluetoothServer( std::vector<Communicator*>* pCommunicators );
         virtual ~BluetoothServer();
 
         enum { UNKNOWN, DISCOVERABLE, NOT_DISCOVERABLE } meWasDiscoverable;
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.hxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.hxx
index 5a1c2fc..bf27fd0 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.hxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.hxx
@@ -36,11 +36,11 @@ namespace sd
              * Create a BufferedStreamSocket on top of an
              * osl::StreamSocket.
              */
-            BufferedStreamSocket( const osl::StreamSocket &aSocket );
+            explicit BufferedStreamSocket( const osl::StreamSocket &aSocket );
             /**
              * Create a BufferedStreamSocket on top of a POSIX or WinSock socket.
              */
-            BufferedStreamSocket( int aSocket );
+            explicit BufferedStreamSocket( int aSocket );
             BufferedStreamSocket( const BufferedStreamSocket &aSocket );
             /**
              * Blocks until a line is read.
diff --git a/sd/source/ui/remotecontrol/Communicator.hxx b/sd/source/ui/remotecontrol/Communicator.hxx
index 6f92b66..4965c43 100644
--- a/sd/source/ui/remotecontrol/Communicator.hxx
+++ b/sd/source/ui/remotecontrol/Communicator.hxx
@@ -38,7 +38,7 @@ namespace sd
     class Communicator : public salhelper::Thread
     {
         public:
-            Communicator( IBluetoothSocket *pSocket );
+            explicit Communicator( IBluetoothSocket *pSocket );
             virtual ~Communicator();
 
             void presentationStarted( const css::uno::Reference<
diff --git a/sd/source/ui/remotecontrol/Receiver.hxx b/sd/source/ui/remotecontrol/Receiver.hxx
index 2c643f7..99d8a2f 100644
--- a/sd/source/ui/remotecontrol/Receiver.hxx
+++ b/sd/source/ui/remotecontrol/Receiver.hxx
@@ -31,7 +31,7 @@ class Receiver : Timer
 {
     std::deque< std::vector< OString > > maExecQueue;
 public:
-    Receiver( Transmitter *aTransmitter );
+    explicit Receiver( Transmitter *aTransmitter );
     virtual ~Receiver();
     virtual void Invoke() override;
     void pushCommand( const std::vector<OString> &rCommand );
diff --git a/sd/source/ui/remotecontrol/Transmitter.hxx b/sd/source/ui/remotecontrol/Transmitter.hxx
index 9fcbe70..3deb644 100644
--- a/sd/source/ui/remotecontrol/Transmitter.hxx
+++ b/sd/source/ui/remotecontrol/Transmitter.hxx
@@ -26,7 +26,7 @@ class Transmitter
 {
 public:
     enum Priority { PRIORITY_LOW = 1, PRIORITY_HIGH };
-    Transmitter( ::sd::IBluetoothSocket* aSocket );
+    explicit Transmitter( ::sd::IBluetoothSocket* aSocket );
     virtual ~Transmitter();
     void addMessage( const OString& aMessage, const Priority aPriority );
     void notifyFinished();
diff --git a/sd/source/ui/sidebar/MasterPageContainerFiller.hxx b/sd/source/ui/sidebar/MasterPageContainerFiller.hxx
index 6fb2091..6b4b7c7 100644
--- a/sd/source/ui/sidebar/MasterPageContainerFiller.hxx
+++ b/sd/source/ui/sidebar/MasterPageContainerFiller.hxx
@@ -53,7 +53,7 @@ public:
         ~ContainerAdapter() {}
     };
 
-    MasterPageContainerFiller (ContainerAdapter& rContainerAdapter);
+    explicit MasterPageContainerFiller (ContainerAdapter& rContainerAdapter);
     virtual ~MasterPageContainerFiller();
 
     /** Run the next step of the task.  After HasNextStep() returns false
diff --git a/sd/source/ui/sidebar/MasterPageContainerProviders.hxx b/sd/source/ui/sidebar/MasterPageContainerProviders.hxx
index d5fcd37..04001d1 100644
--- a/sd/source/ui/sidebar/MasterPageContainerProviders.hxx
+++ b/sd/source/ui/sidebar/MasterPageContainerProviders.hxx
@@ -113,7 +113,7 @@ private:
 class TemplatePageObjectProvider : public PageObjectProvider
 {
 public:
-    TemplatePageObjectProvider (const OUString& rsURL);
+    explicit TemplatePageObjectProvider (const OUString& rsURL);
     virtual ~TemplatePageObjectProvider() {};
     virtual SdPage* operator () (SdDrawDocument* pDocument) override;
     virtual int GetCostIndex() override;
@@ -130,7 +130,7 @@ private:
 class TemplatePreviewProvider : public PreviewProvider
 {
 public:
-    TemplatePreviewProvider (const OUString& rsURL);
+    explicit TemplatePreviewProvider (const OUString& rsURL);
     virtual ~TemplatePreviewProvider() {};
     virtual Image operator() (int nWidth, SdPage* pPage, ::sd::PreviewRenderer& rRenderer) override;
     virtual int GetCostIndex() override;
@@ -157,7 +157,7 @@ public:
 class ExistingPageProvider : public PageObjectProvider
 {
 public:
-    ExistingPageProvider (SdPage* pPage);
+    explicit ExistingPageProvider (SdPage* pPage);
     virtual ~ExistingPageProvider() {}
     virtual SdPage* operator() (SdDrawDocument* pDocument) override;
     virtual int GetCostIndex() override;
diff --git a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
index 0f69067..65a5af9 100644
--- a/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
+++ b/sd/source/ui/sidebar/MasterPageContainerQueue.cxx
@@ -62,9 +62,9 @@ public:
     };
     class CompareToken
     {
-        public:
+    public:
         MasterPageContainer::Token maToken;
-        CompareToken(MasterPageContainer::Token aToken) : maToken(aToken) {}
+        explicit CompareToken(MasterPageContainer::Token aToken) : maToken(aToken) {}
         bool operator() (const PreviewCreationRequest& rRequest) const
             { return maToken==rRequest.mpDescriptor->maToken; }
     };
diff --git a/sd/source/ui/sidebar/MasterPageContainerQueue.hxx b/sd/source/ui/sidebar/MasterPageContainerQueue.hxx
index e8b1553..516c3d4 100644
--- a/sd/source/ui/sidebar/MasterPageContainerQueue.hxx
+++ b/sd/source/ui/sidebar/MasterPageContainerQueue.hxx
@@ -114,7 +114,7 @@ private:
     */
     static sal_uInt32 snWaitForMoreRequestsCount;
 
-    MasterPageContainerQueue (const std::weak_ptr<ContainerAdapter>& rpContainer);
+    explicit MasterPageContainerQueue (const std::weak_ptr<ContainerAdapter>& rpContainer);
     void LateInit();
 
     /** Calculate the priority that defines the order in which requests
diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx
index baed5ef..0329530 100644
--- a/sd/source/ui/slideshow/slideshowimpl.hxx
+++ b/sd/source/ui/slideshow/slideshowimpl.hxx
@@ -97,7 +97,7 @@ struct PresentationSettingsEx : public PresentationSettings
     css::uno::Reference< css::animations::XAnimationNode > mxAnimationNode;
 
     PresentationSettingsEx( const PresentationSettingsEx& );
-    PresentationSettingsEx( PresentationSettings& );
+    explicit PresentationSettingsEx( PresentationSettings& );
 
     void SetArguments( const css::uno::Sequence< css::beans::PropertyValue >& rArguments ) throw (css::lang::IllegalArgumentException, std::exception);
 
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
index 1214527..53716ee 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
@@ -63,7 +63,7 @@ public:
             When that does not exist either then a internal default value is
             used.
     */
-    BitmapCache (const sal_Int32 nMaximalNormalCacheSize = 0);
+    explicit BitmapCache (const sal_Int32 nMaximalNormalCacheSize = 0);
 
     /** The destructor clears the cache and releases all bitmaps still in it.
     */
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
index 7f93e41..92b54c8 100644
--- a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx
@@ -38,7 +38,7 @@ public:
     Bitmap maPreview;
     Size maOriginalSize;
 
-    DummyReplacement (const Bitmap& rPreview) : maPreview(rPreview)  { }
+    explicit DummyReplacement (const Bitmap& rPreview) : maPreview(rPreview)  { }
     virtual ~DummyReplacement() {}
     virtual sal_Int32 GetMemorySize() const override { return maPreview.GetSizeBytes(); }
 };
diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
index 0e63994..3a751df 100644
--- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
@@ -85,7 +85,7 @@ typedef ::std::deque<RecentlyUsedCacheDescriptor> RecentlyUsedQueue;
 class BestFittingCacheComparer
 {
 public:
-    BestFittingCacheComparer (const Size& rPreferredSize)
+    explicit BestFittingCacheComparer (const Size& rPreferredSize)
         : maPreferredSize(rPreferredSize)
     {}
     bool operator()(const ::sd::slidesorter::cache::PageCacheManager::BestFittingPageCaches::value_type& rElement1,
@@ -123,7 +123,7 @@ public:
         address only.
     */
     class CompareWithCache { public:
-        CompareWithCache(const std::shared_ptr<PageCacheManager::Cache>& rpCache)
+        explicit CompareWithCache(const std::shared_ptr<PageCacheManager::Cache>& rpCache)
             : mpCache(rpCache) {}
         bool operator () (const PageCacheContainer::value_type& rValue) const
         { return rValue.second == mpCache; }
diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
index b46a593..d6fb03b 100644
--- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.cxx
@@ -56,7 +56,7 @@ public:
     class DataComparator
     {
     public:
-        DataComparator (const CacheKey aKey)
+        explicit DataComparator (const CacheKey aKey)
             : maKey(aKey)
         {
         }
diff --git a/sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx b/sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx
index 01e278d..3410ae8 100644
--- a/sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx
+++ b/sd/source/ui/slidesorter/cache/SlsRequestQueue.hxx
@@ -38,7 +38,7 @@ class RequestData;
 class RequestQueue : public sdr::PageUser
 {
 public:
-    RequestQueue (const SharedCacheContext& rpCacheContext);
+    explicit RequestQueue (const SharedCacheContext& rpCacheContext);
     virtual ~RequestQueue();
 
     /** Insert a request with highest or lowest priority in its priority
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index 2ef25e5..99278b1 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -86,7 +86,7 @@ namespace {
 class TemporarySlideTrackingDeactivator
 {
 public:
-    TemporarySlideTrackingDeactivator (SlideSorterController& rController)
+    explicit TemporarySlideTrackingDeactivator (SlideSorterController& rController)
         : mrController(rController),
           mbIsCurrentSlideTrackingActive (
               mrController.GetVisibleAreaManager().IsCurrentSlideTrackingActive())
diff --git a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
index c7f6f1e..5870920 100644
--- a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
+++ b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.hxx
@@ -42,7 +42,7 @@ public:
     /** Create a substitution display of the currently selected pages or,
         when provided, the pages in the transferable.
     */
-    DragAndDropContext (SlideSorter& rSlideSorter);
+    explicit DragAndDropContext (SlideSorter& rSlideSorter);
     ~DragAndDropContext();
 
     /** Call this method (for example as reaction to ESC key press) to avoid
diff --git a/sd/source/ui/slidesorter/controller/SlsListener.hxx b/sd/source/ui/slidesorter/controller/SlsListener.hxx
index 949fe97..f281cda 100644
--- a/sd/source/ui/slidesorter/controller/SlsListener.hxx
+++ b/sd/source/ui/slidesorter/controller/SlsListener.hxx
@@ -71,7 +71,7 @@ class Listener
       public SfxListener
 {
 public:
-    Listener (SlideSorter& rSlideSorter);
+    explicit Listener (SlideSorter& rSlideSorter);
     virtual ~Listener();
 
     /** Connect to the current controller of the view shell as listener.
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 966e777..7fc8354 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -101,7 +101,7 @@ namespace {
 class CurrentPageSetter
 {
 public:
-    CurrentPageSetter (ViewShellBase& rBase);
+    explicit CurrentPageSetter (ViewShellBase& rBase);
     void operator () (bool);
 private:
     ViewShellBase& mrBase;
@@ -146,7 +146,7 @@ public:
     std::shared_ptr<tools::EventMultiplexer> mpEventMultiplexer;
     std::shared_ptr<FormShellManager> mpFormShellManager;
 
-    Implementation (ViewShellBase& rBase);
+    explicit Implementation (ViewShellBase& rBase);
     ~Implementation();
 
     void LateInit();


More information about the Libreoffice-commits mailing list