diff options
author | David Tardon <dtardon@redhat.com> | 2012-07-06 17:42:51 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-07-14 10:39:06 +0200 |
commit | dd7d4db073a5d11b173a417ce54caaae810a1610 (patch) | |
tree | 397c615db4cc82957882366ea22ef3f4a9580c99 /svx | |
parent | 782c3ccb3bc608a24483a64ae6bbaebcd917ce0d (diff) |
sprinkle 'explicit' over constructors
Change-Id: I5929a480904460a92272d8e1da94ac1e55417ac2
Diffstat (limited to 'svx')
66 files changed, 83 insertions, 83 deletions
diff --git a/svx/inc/svx/sdr/animation/scheduler.hxx b/svx/inc/svx/sdr/animation/scheduler.hxx index be2fa36026c2..ffb627a9e03a 100644 --- a/svx/inc/svx/sdr/animation/scheduler.hxx +++ b/svx/inc/svx/sdr/animation/scheduler.hxx @@ -50,7 +50,7 @@ namespace sdr public: // constructor/destructor - Event(sal_uInt32 nTime); + explicit Event(sal_uInt32 nTime); SVX_DLLPUBLIC virtual ~Event(); // access to mpNext diff --git a/svx/inc/svx/sdr/contact/objectcontactofpageview.hxx b/svx/inc/svx/sdr/contact/objectcontactofpageview.hxx index 4f8f37dd4389..e371f2ba028d 100644 --- a/svx/inc/svx/sdr/contact/objectcontactofpageview.hxx +++ b/svx/inc/svx/sdr/contact/objectcontactofpageview.hxx @@ -53,7 +53,7 @@ namespace sdr SdrPage* GetSdrPage() const; // basic constructor, used from SdrPageView. - ObjectContactOfPageView(SdrPageWindow& rPageWindow); + explicit ObjectContactOfPageView(SdrPageWindow& rPageWindow); virtual ~ObjectContactOfPageView(); // LazyInvalidate request. This is used from the VOCs to mark that they diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3d.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3d.hxx index 5dc37c5bf8e0..d75b25d7ea8a 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3d.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3d.hxx @@ -65,7 +65,7 @@ namespace sdr public: // basic constructor, used from E3dObject. - ViewContactOfE3d(E3dObject& rObj); + explicit ViewContactOfE3d(E3dObject& rObj); virtual ~ViewContactOfE3d(); // access to E3dObject diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3dextrude.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3dextrude.hxx index f916a168c227..2d7411708d41 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3dextrude.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3dextrude.hxx @@ -37,7 +37,7 @@ namespace sdr { public: // basic constructor, used from SdrObject. - ViewContactOfE3dExtrude(E3dExtrudeObj& rExtrude); + explicit ViewContactOfE3dExtrude(E3dExtrudeObj& rExtrude); virtual ~ViewContactOfE3dExtrude(); // access to SdrObject diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3dlathe.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3dlathe.hxx index d115afc0c37c..4a343b82cd1e 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3dlathe.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3dlathe.hxx @@ -37,7 +37,7 @@ namespace sdr { public: // basic constructor, used from SdrObject. - ViewContactOfE3dLathe(E3dLatheObj& rLathe); + explicit ViewContactOfE3dLathe(E3dLatheObj& rLathe); virtual ~ViewContactOfE3dLathe(); // access to SdrObject diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3dpolygon.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3dpolygon.hxx index 4e7960526c40..aee648b82db5 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3dpolygon.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3dpolygon.hxx @@ -37,7 +37,7 @@ namespace sdr { public: // basic constructor, used from SdrObject. - ViewContactOfE3dPolygon(E3dPolygonObj& rPolygon); + explicit ViewContactOfE3dPolygon(E3dPolygonObj& rPolygon); virtual ~ViewContactOfE3dPolygon(); // access to SdrObject diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3dscene.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3dscene.hxx index 42d63d254b64..cb92073777ab 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3dscene.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3dscene.hxx @@ -52,7 +52,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfE3dScene(E3dScene& rScene); + explicit ViewContactOfE3dScene(E3dScene& rScene); // access to SdrObject E3dScene& GetE3dScene() const diff --git a/svx/inc/svx/sdr/contact/viewcontactofe3dsphere.hxx b/svx/inc/svx/sdr/contact/viewcontactofe3dsphere.hxx index 2d2adbf8e59a..a90b9850c6a3 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofe3dsphere.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofe3dsphere.hxx @@ -37,7 +37,7 @@ namespace sdr { public: // basic constructor, used from SdrObject. - ViewContactOfE3dSphere(E3dSphereObj& rSphere); + explicit ViewContactOfE3dSphere(E3dSphereObj& rSphere); virtual ~ViewContactOfE3dSphere(); // access to SdrObject diff --git a/svx/inc/svx/sdr/contact/viewcontactofgraphic.hxx b/svx/inc/svx/sdr/contact/viewcontactofgraphic.hxx index 917288f75969..dc7ef1a9c7f4 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofgraphic.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofgraphic.hxx @@ -61,7 +61,7 @@ namespace sdr } // basic constructor, destructor - ViewContactOfGraphic(SdrGrafObj& rGrafObj); + explicit ViewContactOfGraphic(SdrGrafObj& rGrafObj); virtual ~ViewContactOfGraphic(); // #i102380# diff --git a/svx/inc/svx/sdr/contact/viewcontactofgroup.hxx b/svx/inc/svx/sdr/contact/viewcontactofgroup.hxx index 6b9c568bfcd8..7bf86ab194c7 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofgroup.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofgroup.hxx @@ -49,7 +49,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfGroup(SdrObjGroup& rGroup); + explicit ViewContactOfGroup(SdrObjGroup& rGroup); virtual ~ViewContactOfGroup(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofmasterpagedescriptor.hxx b/svx/inc/svx/sdr/contact/viewcontactofmasterpagedescriptor.hxx index a2add0590581..df0d55655667 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofmasterpagedescriptor.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofmasterpagedescriptor.hxx @@ -51,7 +51,7 @@ namespace sdr public: // basic constructor - ViewContactOfMasterPageDescriptor(sdr::MasterPageDescriptor& rDescriptor); + explicit ViewContactOfMasterPageDescriptor(sdr::MasterPageDescriptor& rDescriptor); // The destructor. virtual ~ViewContactOfMasterPageDescriptor(); diff --git a/svx/inc/svx/sdr/contact/viewcontactofpageobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofpageobj.hxx index 71e5fc6c77bb..c567081568b6 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofpageobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofpageobj.hxx @@ -55,7 +55,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: // basic constructor, used from SdrObject. - ViewContactOfPageObj(SdrPageObj& rPageObj); + explicit ViewContactOfPageObj(SdrPageObj& rPageObj); virtual ~ViewContactOfPageObj(); // #WIP# React on changes of the object of this ViewContact diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrcaptionobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrcaptionobj.hxx index bd04dfd26e11..58caf1fbf745 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrcaptionobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrcaptionobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrCaptionObj(SdrCaptionObj& rCaptionObj); + explicit ViewContactOfSdrCaptionObj(SdrCaptionObj& rCaptionObj); virtual ~ViewContactOfSdrCaptionObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrcircobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrcircobj.hxx index 6ced3b0fb035..024fd3fed0bb 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrcircobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrcircobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrCircObj(SdrCircObj& rCircObj); + explicit ViewContactOfSdrCircObj(SdrCircObj& rCircObj); virtual ~ViewContactOfSdrCircObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdredgeobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdredgeobj.hxx index 4c5da8982220..2506fac7cf7e 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdredgeobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdredgeobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrEdgeObj(SdrEdgeObj& rEdgeObj); + explicit ViewContactOfSdrEdgeObj(SdrEdgeObj& rEdgeObj); virtual ~ViewContactOfSdrEdgeObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrmeasureobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrmeasureobj.hxx index 01d647c8efc9..c2b03a49619d 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrmeasureobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrmeasureobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrMeasureObj(SdrMeasureObj& rMeasureObj); + explicit ViewContactOfSdrMeasureObj(SdrMeasureObj& rMeasureObj); virtual ~ViewContactOfSdrMeasureObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrmediaobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrmediaobj.hxx index 483ea83253e3..b82c0b3c9d67 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrmediaobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrmediaobj.hxx @@ -51,7 +51,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrMediaObj( SdrMediaObj& rMediaObj ); + explicit ViewContactOfSdrMediaObj( SdrMediaObj& rMediaObj ); virtual ~ViewContactOfSdrMediaObj(); public: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrobj.hxx index 85e8f1075f2a..2b74bcc29b41 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrobj.hxx @@ -61,7 +61,7 @@ namespace sdr } // basic constructor, used from SdrObject. - ViewContactOfSdrObj(SdrObject& rObj); + explicit ViewContactOfSdrObj(SdrObject& rObj); virtual ~ViewContactOfSdrObj(); // Access to possible sub-hierarchy diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrobjcustomshape.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrobjcustomshape.hxx index 72bbd39ea6d7..6c1afa70b9aa 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrobjcustomshape.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrobjcustomshape.hxx @@ -47,7 +47,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrObjCustomShape(SdrObjCustomShape& rCustomShape); + explicit ViewContactOfSdrObjCustomShape(SdrObjCustomShape& rCustomShape); virtual ~ViewContactOfSdrObjCustomShape(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrole2obj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrole2obj.hxx index c67fae1e9173..3670c0b45da3 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrole2obj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrole2obj.hxx @@ -58,7 +58,7 @@ namespace sdr } // basic constructor, used from SdrObject. - ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj); + explicit ViewContactOfSdrOle2Obj(SdrOle2Obj& rOle2Obj); virtual ~ViewContactOfSdrOle2Obj(); // helper for creating a OLE sequence for this object. It takes care od attributes, needed diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrpage.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrpage.hxx index 0b0d409a69a0..1410cfabbd62 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrpage.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrpage.hxx @@ -43,7 +43,7 @@ namespace sdr ViewContactOfSdrPage& mrParentViewContactOfSdrPage; public: - ViewContactOfPageSubObject(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfPageSubObject(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfPageSubObject(); virtual ViewContact* GetParentContact() const; @@ -65,7 +65,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfPageBackground(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfPageBackground(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfPageBackground(); }; } // end of namespace contact @@ -84,7 +84,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfPageShadow(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfPageShadow(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfPageShadow(); }; } // end of namespace contact @@ -103,7 +103,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfPageFill(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfPageFill(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfPageFill(); }; } // end of namespace contact @@ -122,7 +122,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfMasterPage(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfMasterPage(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfMasterPage(); }; } // end of namespace contact @@ -141,7 +141,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfOuterPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfOuterPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfOuterPageBorder(); }; } // end of namespace contact @@ -160,7 +160,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfInnerPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfInnerPageBorder(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfInnerPageBorder(); }; } // end of namespace contact @@ -179,7 +179,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createViewIndependentPrimitive2DSequence() const; public: - ViewContactOfPageHierarchy(ViewContactOfSdrPage& rParentViewContactOfSdrPage); + explicit ViewContactOfPageHierarchy(ViewContactOfSdrPage& rParentViewContactOfSdrPage); virtual ~ViewContactOfPageHierarchy(); virtual sal_uInt32 GetObjectCount() const; @@ -275,7 +275,7 @@ namespace sdr } // basic constructor, used from SdrPage. - ViewContactOfSdrPage(SdrPage& rObj); + explicit ViewContactOfSdrPage(SdrPage& rObj); virtual ~ViewContactOfSdrPage(); // Access to possible sub-hierarchy diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrpathobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrpathobj.hxx index a0c8c1767458..8515aa430523 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrpathobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrpathobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrPathObj(SdrPathObj& rTextObj); + explicit ViewContactOfSdrPathObj(SdrPathObj& rTextObj); virtual ~ViewContactOfSdrPathObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactofsdrrectobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofsdrrectobj.hxx index 3017030fa0de..e605c9dacae1 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofsdrrectobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofsdrrectobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfSdrRectObj(SdrRectObj& rTextObj); + explicit ViewContactOfSdrRectObj(SdrRectObj& rTextObj); virtual ~ViewContactOfSdrRectObj(); protected: diff --git a/svx/inc/svx/sdr/contact/viewcontactoftextobj.hxx b/svx/inc/svx/sdr/contact/viewcontactoftextobj.hxx index 09d59898019c..f6d5ba491713 100644 --- a/svx/inc/svx/sdr/contact/viewcontactoftextobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactoftextobj.hxx @@ -44,7 +44,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfTextObj(SdrTextObj& rTextObj); + explicit ViewContactOfTextObj(SdrTextObj& rTextObj); virtual ~ViewContactOfTextObj(); }; } // end of namespace contact diff --git a/svx/inc/svx/sdr/contact/viewcontactofunocontrol.hxx b/svx/inc/svx/sdr/contact/viewcontactofunocontrol.hxx index 6ed1ef523476..5d042ec3ee6c 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofunocontrol.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofunocontrol.hxx @@ -56,7 +56,7 @@ namespace sdr { namespace contact { return ((SdrUnoObj&)GetSdrObject()); } - ViewContactOfUnoControl( SdrUnoObj& _rUnoObject ); + explicit ViewContactOfUnoControl( SdrUnoObj& _rUnoObject ); virtual ~ViewContactOfUnoControl(); /** access control to selected members diff --git a/svx/inc/svx/sdr/contact/viewcontactofvirtobj.hxx b/svx/inc/svx/sdr/contact/viewcontactofvirtobj.hxx index 91e4fe63db9a..38695259464d 100644 --- a/svx/inc/svx/sdr/contact/viewcontactofvirtobj.hxx +++ b/svx/inc/svx/sdr/contact/viewcontactofvirtobj.hxx @@ -41,7 +41,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfVirtObj(SdrVirtObj& rObj); + explicit ViewContactOfVirtObj(SdrVirtObj& rObj); virtual ~ViewContactOfVirtObj(); // Access to possible sub-hierarchy diff --git a/svx/inc/svx/sdr/overlay/overlaycrosshair.hxx b/svx/inc/svx/sdr/overlay/overlaycrosshair.hxx index 65d65072932c..881ce11838cc 100644 --- a/svx/inc/svx/sdr/overlay/overlaycrosshair.hxx +++ b/svx/inc/svx/sdr/overlay/overlaycrosshair.hxx @@ -35,7 +35,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence(); public: - OverlayCrosshairStriped(const basegfx::B2DPoint& rBasePos); + explicit OverlayCrosshairStriped(const basegfx::B2DPoint& rBasePos); virtual ~OverlayCrosshairStriped(); // react on stripe definition change diff --git a/svx/inc/svx/sdr/overlay/overlayhelpline.hxx b/svx/inc/svx/sdr/overlay/overlayhelpline.hxx index ab7ccd5e30de..bc068ede2aa4 100644 --- a/svx/inc/svx/sdr/overlay/overlayhelpline.hxx +++ b/svx/inc/svx/sdr/overlay/overlayhelpline.hxx @@ -39,7 +39,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence(); public: - OverlayHelplineStriped( + explicit OverlayHelplineStriped( const basegfx::B2DPoint& rBasePos, SdrHelpLineKind eNewKind = SDRHELPLINE_POINT); virtual ~OverlayHelplineStriped(); diff --git a/svx/inc/svx/sdr/overlay/overlayobject.hxx b/svx/inc/svx/sdr/overlay/overlayobject.hxx index 5cf7960efe0c..7459546d54f0 100644 --- a/svx/inc/svx/sdr/overlay/overlayobject.hxx +++ b/svx/inc/svx/sdr/overlay/overlayobject.hxx @@ -116,7 +116,7 @@ namespace sdr void allowAntiAliase(bool bNew); public: - OverlayObject(Color aBaseColor); + explicit OverlayObject(Color aBaseColor); virtual ~OverlayObject(); // get OverlayManager diff --git a/svx/inc/svx/sdr/overlay/overlaypolypolygon.hxx b/svx/inc/svx/sdr/overlay/overlaypolypolygon.hxx index adf481669374..e3b77e04151e 100644 --- a/svx/inc/svx/sdr/overlay/overlaypolypolygon.hxx +++ b/svx/inc/svx/sdr/overlay/overlaypolypolygon.hxx @@ -48,7 +48,7 @@ namespace sdr virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence(); public: - OverlayPolyPolygonStriped(const basegfx::B2DPolyPolygon& rPolyPolygon); + explicit OverlayPolyPolygonStriped(const basegfx::B2DPolyPolygon& rPolyPolygon); virtual ~OverlayPolyPolygonStriped(); // change geometry diff --git a/svx/inc/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx b/svx/inc/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx index 7667564071d4..f917058eca3a 100644 --- a/svx/inc/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx +++ b/svx/inc/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx @@ -45,7 +45,7 @@ namespace sdr drawinglayer::geometry::ViewInformation2D impCreateViewInformation2D(OutputDevice& rOutputDevice) const; public: - OverlayPrimitive2DSequenceObject(const drawinglayer::primitive2d::Primitive2DSequence& rSequence); + explicit OverlayPrimitive2DSequenceObject(const drawinglayer::primitive2d::Primitive2DSequence& rSequence); virtual ~OverlayPrimitive2DSequenceObject(); diff --git a/svx/inc/svx/sdr/properties/attributeproperties.hxx b/svx/inc/svx/sdr/properties/attributeproperties.hxx index 1c64d9b66e7e..a339cb68a421 100644 --- a/svx/inc/svx/sdr/properties/attributeproperties.hxx +++ b/svx/inc/svx/sdr/properties/attributeproperties.hxx @@ -53,7 +53,7 @@ namespace sdr public: // basic constructor - AttributeProperties(SdrObject& rObj); + explicit AttributeProperties(SdrObject& rObj); // constructor for copying, but using new object AttributeProperties(const AttributeProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/captionproperties.hxx b/svx/inc/svx/sdr/properties/captionproperties.hxx index f565a19925ba..b67e8da3a027 100644 --- a/svx/inc/svx/sdr/properties/captionproperties.hxx +++ b/svx/inc/svx/sdr/properties/captionproperties.hxx @@ -39,7 +39,7 @@ namespace sdr public: // basic constructor - CaptionProperties(SdrObject& rObj); + explicit CaptionProperties(SdrObject& rObj); // constructor for copying, but using new object CaptionProperties(const CaptionProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/circleproperties.hxx b/svx/inc/svx/sdr/properties/circleproperties.hxx index be0fed6ca272..a7833545446f 100644 --- a/svx/inc/svx/sdr/properties/circleproperties.hxx +++ b/svx/inc/svx/sdr/properties/circleproperties.hxx @@ -39,7 +39,7 @@ namespace sdr public: // basic constructor - CircleProperties(SdrObject& rObj); + explicit CircleProperties(SdrObject& rObj); // constructor for copying, but using new object CircleProperties(const CircleProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/connectorproperties.hxx b/svx/inc/svx/sdr/properties/connectorproperties.hxx index e075fd536c76..beabe5af7e05 100644 --- a/svx/inc/svx/sdr/properties/connectorproperties.hxx +++ b/svx/inc/svx/sdr/properties/connectorproperties.hxx @@ -39,7 +39,7 @@ namespace sdr public: // basic constructor - ConnectorProperties(SdrObject& rObj); + explicit ConnectorProperties(SdrObject& rObj); // constructor for copying, but using new object ConnectorProperties(const ConnectorProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/customshapeproperties.hxx b/svx/inc/svx/sdr/properties/customshapeproperties.hxx index 7025a45a55e0..1a816735dd22 100644 --- a/svx/inc/svx/sdr/properties/customshapeproperties.hxx +++ b/svx/inc/svx/sdr/properties/customshapeproperties.hxx @@ -62,7 +62,7 @@ namespace sdr virtual void ForceDefaultAttributes(); // basic constructor - CustomShapeProperties(SdrObject& rObj); + explicit CustomShapeProperties(SdrObject& rObj); // constructor for copying, but using new object CustomShapeProperties(const CustomShapeProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/defaultproperties.hxx b/svx/inc/svx/sdr/properties/defaultproperties.hxx index 3cff34e9b46b..44fb7ae352b1 100644 --- a/svx/inc/svx/sdr/properties/defaultproperties.hxx +++ b/svx/inc/svx/sdr/properties/defaultproperties.hxx @@ -52,7 +52,7 @@ namespace sdr public: // basic constructor - DefaultProperties(SdrObject& rObj); + explicit DefaultProperties(SdrObject& rObj); // constructor for copying, but using new object DefaultProperties(const DefaultProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dcompoundproperties.hxx b/svx/inc/svx/sdr/properties/e3dcompoundproperties.hxx index 80182061c966..f7b67a230f89 100644 --- a/svx/inc/svx/sdr/properties/e3dcompoundproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dcompoundproperties.hxx @@ -37,7 +37,7 @@ namespace sdr public: // basic constructor - E3dCompoundProperties(SdrObject& rObj); + explicit E3dCompoundProperties(SdrObject& rObj); // constructor for copying, but using new object E3dCompoundProperties(const E3dCompoundProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dextrudeproperties.hxx b/svx/inc/svx/sdr/properties/e3dextrudeproperties.hxx index aec3515ca832..8c4176d3b0c0 100644 --- a/svx/inc/svx/sdr/properties/e3dextrudeproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dextrudeproperties.hxx @@ -37,7 +37,7 @@ namespace sdr public: // basic constructor - E3dExtrudeProperties(SdrObject& rObj); + explicit E3dExtrudeProperties(SdrObject& rObj); // constructor for copying, but using new object E3dExtrudeProperties(const E3dExtrudeProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dlatheproperties.hxx b/svx/inc/svx/sdr/properties/e3dlatheproperties.hxx index d599ca52e1cc..940191602887 100644 --- a/svx/inc/svx/sdr/properties/e3dlatheproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dlatheproperties.hxx @@ -37,7 +37,7 @@ namespace sdr public: // basic constructor - E3dLatheProperties(SdrObject& rObj); + explicit E3dLatheProperties(SdrObject& rObj); // constructor for copying, but using new object E3dLatheProperties(const E3dLatheProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dproperties.hxx b/svx/inc/svx/sdr/properties/e3dproperties.hxx index 7ad3263d6b61..bdf5f8a69509 100644 --- a/svx/inc/svx/sdr/properties/e3dproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dproperties.hxx @@ -40,7 +40,7 @@ namespace sdr public: // basic constructor - E3dProperties(SdrObject& rObj); + explicit E3dProperties(SdrObject& rObj); // constructor for copying, but using new object E3dProperties(const E3dProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dsceneproperties.hxx b/svx/inc/svx/sdr/properties/e3dsceneproperties.hxx index 1f281b80d355..fbbaa4ed03c1 100644 --- a/svx/inc/svx/sdr/properties/e3dsceneproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dsceneproperties.hxx @@ -36,7 +36,7 @@ namespace sdr public: // basic constructor - E3dSceneProperties(SdrObject& rObj); + explicit E3dSceneProperties(SdrObject& rObj); // constructor for copying, but using new object E3dSceneProperties(const E3dSceneProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/e3dsphereproperties.hxx b/svx/inc/svx/sdr/properties/e3dsphereproperties.hxx index 9d9595ba2929..11e819507d06 100644 --- a/svx/inc/svx/sdr/properties/e3dsphereproperties.hxx +++ b/svx/inc/svx/sdr/properties/e3dsphereproperties.hxx @@ -36,7 +36,7 @@ namespace sdr public: // basic constructor - E3dSphereProperties(SdrObject& rObj); + explicit E3dSphereProperties(SdrObject& rObj); // constructor for copying, but using new object E3dSphereProperties(const E3dSphereProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/emptyproperties.hxx b/svx/inc/svx/sdr/properties/emptyproperties.hxx index c47d5c284c84..71042081b747 100644 --- a/svx/inc/svx/sdr/properties/emptyproperties.hxx +++ b/svx/inc/svx/sdr/properties/emptyproperties.hxx @@ -52,7 +52,7 @@ namespace sdr public: // basic constructor - EmptyProperties(SdrObject& rObj); + explicit EmptyProperties(SdrObject& rObj); // constructor for copying, but using new object EmptyProperties(const EmptyProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/graphicproperties.hxx b/svx/inc/svx/sdr/properties/graphicproperties.hxx index d65a2356b128..9b7c1cc58762 100644 --- a/svx/inc/svx/sdr/properties/graphicproperties.hxx +++ b/svx/inc/svx/sdr/properties/graphicproperties.hxx @@ -39,7 +39,7 @@ namespace sdr public: // basic constructor - GraphicProperties(SdrObject& rObj); + explicit GraphicProperties(SdrObject& rObj); // constructor for copying, but using new object GraphicProperties(const GraphicProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/groupproperties.hxx b/svx/inc/svx/sdr/properties/groupproperties.hxx index 409838bfb6db..eea4a991fe17 100644 --- a/svx/inc/svx/sdr/properties/groupproperties.hxx +++ b/svx/inc/svx/sdr/properties/groupproperties.hxx @@ -48,7 +48,7 @@ namespace sdr public: // basic constructor - GroupProperties(SdrObject& rObj); + explicit GroupProperties(SdrObject& rObj); // copy constructor GroupProperties(const GroupProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/itemsettools.hxx b/svx/inc/svx/sdr/properties/itemsettools.hxx index c18c32a23576..3178db7a230b 100644 --- a/svx/inc/svx/sdr/properties/itemsettools.hxx +++ b/svx/inc/svx/sdr/properties/itemsettools.hxx @@ -42,7 +42,7 @@ namespace sdr void* mpData; public: - ItemChangeBroadcaster(const SdrObject& rObj); + explicit ItemChangeBroadcaster(const SdrObject& rObj); ~ItemChangeBroadcaster(); sal_uInt32 GetRectangleCount() const; diff --git a/svx/inc/svx/sdr/properties/measureproperties.hxx b/svx/inc/svx/sdr/properties/measureproperties.hxx index 5f4195e58102..a015518e59b2 100644 --- a/svx/inc/svx/sdr/properties/measureproperties.hxx +++ b/svx/inc/svx/sdr/properties/measureproperties.hxx @@ -39,7 +39,7 @@ namespace sdr public: // basic constructor - MeasureProperties(SdrObject& rObj); + explicit MeasureProperties(SdrObject& rObj); // constructor for copying, but using new object MeasureProperties(const MeasureProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/oleproperties.hxx b/svx/inc/svx/sdr/properties/oleproperties.hxx index 7cec9248af2d..214f4f060d3f 100644 --- a/svx/inc/svx/sdr/properties/oleproperties.hxx +++ b/svx/inc/svx/sdr/properties/oleproperties.hxx @@ -33,7 +33,7 @@ namespace sdr protected: public: // basic constructor - OleProperties(SdrObject& rObj); + explicit OleProperties(SdrObject& rObj); // constructor for copying, but using new object OleProperties(const OleProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/pageproperties.hxx b/svx/inc/svx/sdr/properties/pageproperties.hxx index 0e87ccc543d8..edaa93274958 100644 --- a/svx/inc/svx/sdr/properties/pageproperties.hxx +++ b/svx/inc/svx/sdr/properties/pageproperties.hxx @@ -51,7 +51,7 @@ namespace sdr public: // basic constructor - PageProperties(SdrObject& rObj); + explicit PageProperties(SdrObject& rObj); // constructor for copying, but using new object PageProperties(const PageProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/properties.hxx b/svx/inc/svx/sdr/properties/properties.hxx index a6a202f733df..b349558882ce 100644 --- a/svx/inc/svx/sdr/properties/properties.hxx +++ b/svx/inc/svx/sdr/properties/properties.hxx @@ -90,7 +90,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - BaseProperties(SdrObject& rObj); + explicit BaseProperties(SdrObject& rObj); // constructor for copying, but using new object. Used from the Clone() // method. diff --git a/svx/inc/svx/sdr/properties/rectangleproperties.hxx b/svx/inc/svx/sdr/properties/rectangleproperties.hxx index 72f0061f58c4..b061a070b349 100644 --- a/svx/inc/svx/sdr/properties/rectangleproperties.hxx +++ b/svx/inc/svx/sdr/properties/rectangleproperties.hxx @@ -37,7 +37,7 @@ namespace sdr public: // basic constructor - RectangleProperties(SdrObject& rObj); + explicit RectangleProperties(SdrObject& rObj); // constructor for copying, but using new object RectangleProperties(const RectangleProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdr/properties/textproperties.hxx b/svx/inc/svx/sdr/properties/textproperties.hxx index eadf53ef6f6e..98bc7533648c 100644 --- a/svx/inc/svx/sdr/properties/textproperties.hxx +++ b/svx/inc/svx/sdr/properties/textproperties.hxx @@ -47,7 +47,7 @@ namespace sdr public: // basic constructor - TextProperties(SdrObject& rObj); + explicit TextProperties(SdrObject& rObj); // constructor for copying, but using new object TextProperties(const TextProperties& rProps, SdrObject& rObj); diff --git a/svx/inc/svx/sdrpaintwindow.hxx b/svx/inc/svx/sdrpaintwindow.hxx index c6faaa28121a..b550870acc82 100644 --- a/svx/inc/svx/sdrpaintwindow.hxx +++ b/svx/inc/svx/sdrpaintwindow.hxx @@ -59,7 +59,7 @@ class SdrPreRenderDevice VirtualDevice maPreRenderDevice; public: - SdrPreRenderDevice(OutputDevice& rOriginal); + explicit SdrPreRenderDevice(OutputDevice& rOriginal); ~SdrPreRenderDevice(); void PreparePreRenderDevice(); diff --git a/svx/inc/svx/svdhdl.hxx b/svx/inc/svx/svdhdl.hxx index c31a9665e27d..8a0d7f4a346b 100644 --- a/svx/inc/svx/svdhdl.hxx +++ b/svx/inc/svx/svdhdl.hxx @@ -191,7 +191,7 @@ protected: public: SdrHdl(); - SdrHdl(const Point& rPnt, SdrHdlKind eNewKind=HDL_MOVE); + explicit SdrHdl(const Point& rPnt, SdrHdlKind eNewKind=HDL_MOVE); virtual ~SdrHdl(); const ::sdr::overlay::OverlayObjectList& getOverlayObjectList() const { return maOverlayGroup; } @@ -281,7 +281,7 @@ private: SVX_DLLPRIVATE void CallColorChangeLink(); public: - SdrHdlColor(const Point& rRef, Color aCol = Color(COL_BLACK), const Size& rSize = Size(11, 11), sal_Bool bLum = sal_False); + explicit SdrHdlColor(const Point& rRef, Color aCol = Color(COL_BLACK), const Size& rSize = Size(11, 11), sal_Bool bLum = sal_False); virtual ~SdrHdlColor(); sal_Bool IsUseLuminance() const { return bUseLuminance; } @@ -391,7 +391,7 @@ class E3dVolumeMarker : public SdrHdl virtual void CreateB2dIAObject(); public: - E3dVolumeMarker(const basegfx::B2DPolyPolygon& rWireframePoly); + explicit E3dVolumeMarker(const basegfx::B2DPolyPolygon& rWireframePoly); }; //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -466,7 +466,7 @@ private: SVX_DLLPRIVATE sal_Bool operator!=(const SdrHdlList&) const { return sal_False; } public: - SdrHdlList(SdrMarkView* pV); + explicit SdrHdlList(SdrMarkView* pV); ~SdrHdlList(); void Clear(); diff --git a/svx/inc/svx/svdhlpln.hxx b/svx/inc/svx/svdhlpln.hxx index b963671f952e..33b0a8c2bc99 100644 --- a/svx/inc/svx/svdhlpln.hxx +++ b/svx/inc/svx/svdhlpln.hxx @@ -54,7 +54,7 @@ class SdrHelpLine { sal_Int32 nStepWidth, Color aColA, Color aColB, sal_Bool bHorizontal) const; public: - SdrHelpLine(SdrHelpLineKind eNewKind=SDRHELPLINE_POINT): eKind(eNewKind) {} + explicit SdrHelpLine(SdrHelpLineKind eNewKind=SDRHELPLINE_POINT): eKind(eNewKind) {} SdrHelpLine(SdrHelpLineKind eNewKind, const Point& rNewPos): aPos(rNewPos), eKind(eNewKind) {} bool operator==(const SdrHelpLine& rCmp) const { return aPos==rCmp.aPos && eKind==rCmp.eKind; } bool operator!=(const SdrHelpLine& rCmp) const { return !operator==(rCmp); } diff --git a/svx/inc/svx/svdlayer.hxx b/svx/inc/svx/svdlayer.hxx index a98154fbb8e8..25b27ef9601f 100644 --- a/svx/inc/svx/svdlayer.hxx +++ b/svx/inc/svx/svdlayer.hxx @@ -96,7 +96,7 @@ protected: SdrLayerID GetUniqueLayerID() const; void Broadcast() const; public: - SdrLayerAdmin(SdrLayerAdmin* pNewParent=NULL); + explicit SdrLayerAdmin(SdrLayerAdmin* pNewParent=NULL); SdrLayerAdmin(const SdrLayerAdmin& rSrcLayerAdmin); ~SdrLayerAdmin(); const SdrLayerAdmin& operator=(const SdrLayerAdmin& rSrcLayerAdmin); diff --git a/svx/inc/svx/svdmark.hxx b/svx/inc/svx/svdmark.hxx index 5dd6ce358bb8..afbc0732322f 100644 --- a/svx/inc/svx/svdmark.hxx +++ b/svx/inc/svx/svdmark.hxx @@ -160,7 +160,7 @@ protected: sal_uInt16 mnUser; // z.B. fuer CopyObjects, mitkopieren von Edges public: - SdrMark(SdrObject* pNewObj = 0L, SdrPageView* pNewPageView = 0L); + explicit SdrMark(SdrObject* pNewObj = 0L, SdrPageView* pNewPageView = 0L); SdrMark(const SdrMark& rMark); virtual ~SdrMark(); diff --git a/svx/inc/svx/svdmodel.hxx b/svx/inc/svx/svdmodel.hxx index 279098cfb8f4..87a096518410 100644 --- a/svx/inc/svx/svdmodel.hxx +++ b/svx/inc/svx/svdmodel.hxx @@ -140,8 +140,8 @@ public: public: TYPEINFO(); - SdrHint(SdrHintKind eNewHint); - SdrHint(const SdrObject& rNewObj); + explicit SdrHint(SdrHintKind eNewHint); + explicit SdrHint(const SdrObject& rNewObj); void SetPage(const SdrPage* pNewPage); void SetObject(const SdrObject* pNewObj); @@ -309,8 +309,8 @@ public: // Zeichenobjekte verwenden moechte. Setzt man degegen nur vom abstrakten // Basisobjekt SdrObject abgeleitete Objekte ein, so ist man frei in der // Wahl des Pools. - SdrModel(SfxItemPool* pPool=NULL, ::comphelper::IEmbeddedHelper* pPers=NULL, sal_Bool bLoadRefCounts = LOADREFCOUNTS); - SdrModel(const String& rPath, SfxItemPool* pPool=NULL, ::comphelper::IEmbeddedHelper* pPers=NULL, sal_Bool bLoadRefCounts = LOADREFCOUNTS); + explicit SdrModel(SfxItemPool* pPool=NULL, ::comphelper::IEmbeddedHelper* pPers=NULL, sal_Bool bLoadRefCounts = LOADREFCOUNTS); + explicit SdrModel(const String& rPath, SfxItemPool* pPool=NULL, ::comphelper::IEmbeddedHelper* pPers=NULL, sal_Bool bLoadRefCounts = LOADREFCOUNTS); SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, bool bUseExtColorTable, sal_Bool bLoadRefCounts = LOADREFCOUNTS); SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, bool bUseExtColorTable, sal_Bool bLoadRefCounts = LOADREFCOUNTS); virtual ~SdrModel(); diff --git a/svx/inc/svx/svdouno.hxx b/svx/inc/svx/svdouno.hxx index fe2e8f232caa..90cef3208673 100644 --- a/svx/inc/svx/svdouno.hxx +++ b/svx/inc/svx/svdouno.hxx @@ -75,7 +75,7 @@ private: public: TYPEINFO(); - SdrUnoObj(const String& rModelName, sal_Bool bOwnsModel = sal_True); + explicit SdrUnoObj(const String& rModelName, sal_Bool bOwnsModel = sal_True); SdrUnoObj(const String& rModelName, const ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSFac, sal_Bool bOwnsModel = sal_True); diff --git a/svx/inc/svx/svdpntv.hxx b/svx/inc/svx/svdpntv.hxx index 19594c3a7a4a..53f40b16ffb3 100644 --- a/svx/inc/svx/svdpntv.hxx +++ b/svx/inc/svx/svdpntv.hxx @@ -113,7 +113,7 @@ class SVX_DLLPUBLIC SvxViewHint : public SfxHint public: enum HintType { SVX_HINT_VIEWCHANGED }; TYPEINFO(); - SvxViewHint (HintType eType); + explicit SvxViewHint (HintType eType); HintType GetHintType (void) const; private: diff --git a/svx/inc/svx/svdsob.hxx b/svx/inc/svx/svdsob.hxx index feec79ed6375..b10c196efff4 100644 --- a/svx/inc/svx/svdsob.hxx +++ b/svx/inc/svx/svdsob.hxx @@ -46,7 +46,7 @@ protected: sal_uInt8 aData[32]; public: - SetOfByte(sal_Bool bInitVal = sal_False) + explicit SetOfByte(sal_Bool bInitVal = sal_False) { memset(aData, bInitVal ? 0xFF : 0x00, sizeof(aData)); } diff --git a/svx/inc/svx/svdview.hxx b/svx/inc/svx/svdview.hxx index 71c7403ffe76..19c1a1d8a111 100644 --- a/svx/inc/svx/svdview.hxx +++ b/svx/inc/svx/svdview.hxx @@ -198,7 +198,7 @@ protected: public: TYPEINFO(); - SdrView(SdrModel* pModel1, OutputDevice* pOut = 0L); + explicit SdrView(SdrModel* pModel1, OutputDevice* pOut = 0L); virtual ~SdrView(); // Default sind alle Dispatcher aktiviert. Will die App z.B. fuer diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx index 8269870fb0df..d18e64a5e0af 100644 --- a/svx/source/sdr/attribute/sdrformtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx @@ -175,7 +175,7 @@ namespace drawinglayer unsigned mbFormTextMirror : 1; // change orientation unsigned mbFormTextOutline : 1; // show contour of objects - ImpSdrFormTextAttribute(const SfxItemSet& rSet) + explicit ImpSdrFormTextAttribute(const SfxItemSet& rSet) : mnRefCount(0), mnFormTextDistance(((const XFormTextDistanceItem&)rSet.Get(XATTR_FORMTXTDISTANCE)).GetValue()), mnFormTextStart(((const XFormTextStartItem&)rSet.Get(XATTR_FORMTXTSTART)).GetValue()), diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx index d641ee0a53f2..5c0edb71bbb6 100644 --- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx @@ -50,7 +50,7 @@ namespace sdr public: // basic constructor/destructor - PagePrimitiveExtractor(ViewObjectContactOfPageObj& rVOC); + explicit PagePrimitiveExtractor(ViewObjectContactOfPageObj& rVOC); virtual ~PagePrimitiveExtractor(); // LazyInvalidate request. Supported here to not automatically diff --git a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx index 17f6e0985da7..06f1b4dbd8da 100644 --- a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx @@ -434,7 +434,7 @@ namespace sdr { namespace contact { { const SdrPageView& m_rPageView; public: - SdrPageViewAccess( const SdrPageView& _rPageView ) : m_rPageView( _rPageView ) { } + explicit SdrPageViewAccess( const SdrPageView& _rPageView ) : m_rPageView( _rPageView ) { } virtual ~SdrPageViewAccess() {} @@ -476,7 +476,7 @@ namespace sdr { namespace contact { private: Reference< XControlContainer >& m_rControlContainer; public: - InvisibleControlViewAccess( Reference< XControlContainer >& _inout_ControlContainer ) + explicit InvisibleControlViewAccess( Reference< XControlContainer >& _inout_ControlContainer ) :m_rControlContainer( _inout_ControlContainer ) { } @@ -605,7 +605,7 @@ namespace sdr { namespace contact { ::basegfx::B2DHomMatrix m_aZoomLevelNormalization; public: - ViewObjectContactOfUnoControl_Impl( ViewObjectContactOfUnoControl* _pAntiImpl ); + explicit ViewObjectContactOfUnoControl_Impl( ViewObjectContactOfUnoControl* _pAntiImpl ); /** disposes the instance, which is nonfunctional afterwards */ @@ -901,7 +901,7 @@ namespace sdr { namespace contact { ) const; public: - LazyControlCreationPrimitive2D( const ::rtl::Reference< ViewObjectContactOfUnoControl_Impl >& _pVOCImpl ) + explicit LazyControlCreationPrimitive2D( const ::rtl::Reference< ViewObjectContactOfUnoControl_Impl >& _pVOCImpl ) :m_pVOCImpl( _pVOCImpl ) { ENSURE_OR_THROW( m_pVOCImpl.is(), "Illegal argument." ); |