summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-27 10:53:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-27 13:54:54 +0100
commitafe5672fbc87ae2bc7fb72fac4bb5b837b646dea (patch)
tree1e78a6dcce4c7313ab4d9109b53077e687909606
parent77c47fc79c1c8096c19a81a0d320e75b84857144 (diff)
cppcheck: noExplicitConstructor
Change-Id: I27c24d3284a8e0678fc5c041426b4a7e71cbd363
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx2
-rw-r--r--svx/source/accessibility/AccessibleTextHelper.cxx6
-rw-r--r--svx/source/core/extedit.cxx2
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx10
-rw-r--r--svx/source/dialog/_bmpmask.cxx2
-rw-r--r--svx/source/dialog/imapwnd.hxx2
-rw-r--r--svx/source/dialog/svxruler.cxx2
-rw-r--r--svx/source/engine3d/helperminimaldepth3d.cxx2
-rw-r--r--svx/source/engine3d/scene3d.cxx4
-rw-r--r--svx/source/engine3d/view3d.cxx2
-rw-r--r--svx/source/fmcomp/fmgridif.cxx2
-rw-r--r--svx/source/fmcomp/gridctrl.cxx4
-rw-r--r--svx/source/form/datanavi.cxx4
-rw-r--r--svx/source/form/filtnav.cxx6
-rw-r--r--svx/source/form/fmpgeimp.cxx2
-rw-r--r--svx/source/form/fmscriptingenv.cxx4
-rw-r--r--svx/source/form/fmshimp.cxx2
-rw-r--r--svx/source/form/fmundo.cxx2
-rw-r--r--svx/source/form/fmvwimp.cxx4
-rw-r--r--svx/source/form/formcontrolfactory.cxx2
-rw-r--r--svx/source/form/formcontroller.cxx4
-rw-r--r--svx/source/form/formcontrolling.cxx6
-rw-r--r--svx/source/form/legacyformcontroller.cxx2
-rw-r--r--svx/source/gallery2/codec.hxx4
-rw-r--r--svx/source/gallery2/galbrws2.cxx2
-rw-r--r--svx/source/sidebar/EmptyPanel.hxx2
-rw-r--r--svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx2
-rw-r--r--svx/source/stbctrls/pszctrl.cxx2
-rw-r--r--svx/source/stbctrls/selctrl.cxx2
-rw-r--r--svx/source/svdraw/svddrgm1.hxx12
-rw-r--r--svx/source/svdraw/svdhdl.cxx2
-rw-r--r--svx/source/svdraw/svdograf.cxx2
-rw-r--r--svx/source/svdraw/svdoole2.cxx6
-rw-r--r--svx/source/svdraw/svdopath.cxx2
-rw-r--r--svx/source/svdraw/svdotextdecomposition.cxx2
-rw-r--r--svx/source/svdraw/svdotextpathdecomposition.cxx4
-rw-r--r--svx/source/svdraw/svdotxln.cxx2
-rw-r--r--svx/source/svdraw/svdouno.cxx2
-rw-r--r--svx/source/svdraw/svdpage.cxx2
-rw-r--r--svx/source/table/accessibletableshape.cxx2
-rw-r--r--svx/source/table/propertyset.hxx4
-rw-r--r--svx/source/table/svdotable.cxx2
-rw-r--r--svx/source/table/tablecolumns.hxx2
-rw-r--r--svx/source/table/tablecontroller.cxx2
-rw-r--r--svx/source/table/tablelayouter.hxx2
-rw-r--r--svx/source/table/tablemodel.hxx6
-rw-r--r--svx/source/table/tablerows.hxx2
-rw-r--r--svx/source/table/tablertfimporter.cxx6
-rw-r--r--svx/source/table/tableundo.hxx8
-rw-r--r--svx/source/table/viewcontactoftableobj.hxx2
-rw-r--r--svx/source/tbxctrls/bulletsnumbering.cxx2
-rw-r--r--svx/source/tbxctrls/colrctrl.cxx9
-rw-r--r--svx/source/tbxctrls/extrusioncontrols.hxx8
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx4
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx2
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx2
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx2
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx2
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx4
-rw-r--r--svx/source/unodraw/XPropertyTable.cxx12
-rw-r--r--svx/source/unodraw/gluepts.cxx2
-rw-r--r--svx/source/unodraw/recoveryui.cxx2
-rw-r--r--svx/source/unodraw/shapeimpl.hxx10
-rw-r--r--svx/source/unodraw/unobtabl.cxx2
-rw-r--r--svx/source/unodraw/unodtabl.cxx2
-rw-r--r--svx/source/unodraw/unogtabl.cxx2
-rw-r--r--svx/source/unodraw/unohtabl.cxx2
-rw-r--r--svx/source/unodraw/unomod.cxx2
-rw-r--r--svx/source/unodraw/unomtabl.cxx2
-rw-r--r--svx/source/unodraw/unoshape.cxx4
-rw-r--r--svx/source/unodraw/unottabl.cxx2
-rw-r--r--svx/source/unogallery/unogalitem.hxx2
-rw-r--r--svx/source/unogallery/unogaltheme.hxx2
-rw-r--r--svx/source/xml/xmlgrhlp.cxx4
-rw-r--r--svx/source/xml/xmlxtexp.cxx14
-rw-r--r--svx/workben/msview/msview.cxx9
-rw-r--r--svx/workben/msview/xmlconfig.hxx16
-rw-r--r--sw/qa/core/Test-BigPtrArray.cxx4
-rw-r--r--sw/qa/core/test_ToxTextGenerator.cxx2
-rw-r--r--sw/qa/tiledrendering/tiledrendering.cxx2
-rw-r--r--sw/source/core/access/accmap.cxx8
-rw-r--r--sw/source/core/access/accpara.cxx4
-rw-r--r--sw/source/core/access/acctable.cxx12
-rw-r--r--sw/source/core/crsr/crsrsh.cxx2
-rw-r--r--sw/source/core/crsr/swcrsr.cxx2
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx2
-rw-r--r--sw/source/core/doc/acmplwrd.cxx2
-rw-r--r--sw/source/core/doc/doccomp.cxx8
-rw-r--r--sw/source/core/doc/docdesc.cxx4
-rw-r--r--sw/source/core/doc/tblrwcl.cxx2
-rw-r--r--sw/source/core/docnode/finalthreadmanager.cxx2
-rw-r--r--sw/source/core/docnode/ndtbl.cxx2
-rw-r--r--sw/source/core/docnode/nodes.cxx3
-rw-r--r--sw/source/core/draw/dcontact.cxx2
-rw-r--r--sw/source/core/draw/dflyobj.cxx4
-rw-r--r--sw/source/core/edit/edlingu.cxx7
-rw-r--r--sw/source/core/fields/reffld.cxx2
-rw-r--r--sw/source/core/frmedt/feshview.cxx2
-rw-r--r--sw/source/core/frmedt/tblsel.cxx2
-rw-r--r--sw/source/core/layout/anchoreddrawobject.cxx4
-rw-r--r--sw/source/core/layout/flycnt.cxx2
-rw-r--r--sw/source/core/layout/layouter.cxx4
-rw-r--r--sw/source/core/layout/objectformattertxtfrm.cxx2
-rw-r--r--sw/source/core/layout/paintfrm.cxx4
-rw-r--r--sw/source/core/layout/sectfrm.cxx2
-rw-r--r--sw/source/core/layout/trvlfrm.cxx2
-rw-r--r--sw/source/core/ole/ndole.cxx4
-rw-r--r--sw/source/core/text/inftxt.hxx2
-rw-r--r--sw/source/core/text/itratr.hxx2
-rw-r--r--sw/source/core/text/itrpaint.hxx2
-rw-r--r--sw/source/core/text/itrtxt.hxx10
-rw-r--r--sw/source/core/text/porexp.hxx2
-rw-r--r--sw/source/core/text/porfld.hxx4
-rw-r--r--sw/source/core/text/porfly.hxx2
-rw-r--r--sw/source/core/text/porglue.hxx10
-rw-r--r--sw/source/core/text/porhyph.hxx4
-rw-r--r--sw/source/core/text/portxt.hxx6
-rw-r--r--sw/source/core/text/txtcache.hxx2
-rw-r--r--sw/source/core/text/txtdrop.cxx2
-rw-r--r--sw/source/core/text/txtpaint.hxx14
-rw-r--r--sw/source/core/text/xmldump.cxx2
-rw-r--r--sw/source/core/txtnode/fntcap.cxx6
-rw-r--r--sw/source/core/txtnode/modeltoviewhelper.cxx2
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
-rw-r--r--sw/source/core/txtnode/thints.cxx8
-rw-r--r--sw/source/core/undo/untbl.cxx6
-rw-r--r--sw/source/core/unocore/XMLRangeHelper.cxx4
127 files changed, 234 insertions, 254 deletions
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index 7b9cade8d85a..8e2635a59c38 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -97,7 +97,7 @@ namespace {
, public Wizard_PBase
{
public:
- Wizard( const uno::Reference< uno::XComponentContext >& i_rContext );
+ explicit Wizard( const uno::Reference< uno::XComponentContext >& i_rContext );
// lang::XServiceInfo
virtual OUString SAL_CALL getImplementationName() throw(uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx
index e6b07da01a7a..d61257ccd41e 100644
--- a/svx/source/accessibility/AccessibleTextHelper.cxx
+++ b/svx/source/accessibility/AccessibleTextHelper.cxx
@@ -348,7 +348,7 @@ namespace accessibility
class AccessibleTextHelper_OffsetChildIndex : public ::std::unary_function< ::accessibility::AccessibleEditableTextPara&, void >
{
public:
- AccessibleTextHelper_OffsetChildIndex( sal_Int32 nDifference ) : mnDifference(nDifference) {}
+ explicit AccessibleTextHelper_OffsetChildIndex( sal_Int32 nDifference ) : mnDifference(nDifference) {}
void operator()( ::accessibility::AccessibleEditableTextPara& rPara )
{
rPara.SetIndexInParent( rPara.GetIndexInParent() + mnDifference );
@@ -848,7 +848,7 @@ namespace accessibility
::accessibility::AccessibleParaManager::WeakChild >
{
public:
- AccessibleTextHelper_UpdateChildBounds( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {}
+ explicit AccessibleTextHelper_UpdateChildBounds( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {}
::accessibility::AccessibleParaManager::WeakChild operator()( const ::accessibility::AccessibleParaManager::WeakChild& rChild )
{
// retrieve hard reference from weak one
@@ -902,7 +902,7 @@ namespace accessibility
class AccessibleTextHelper_LostChildEvent : public ::std::unary_function< const ::accessibility::AccessibleParaManager::WeakChild&, void >
{
public:
- AccessibleTextHelper_LostChildEvent( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {}
+ explicit AccessibleTextHelper_LostChildEvent( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {}
void operator()( const ::accessibility::AccessibleParaManager::WeakChild& rPara )
{
// retrieve hard reference from weak one
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx
index bb15fca328a3..c705784f2f62 100644
--- a/svx/source/core/extedit.cxx
+++ b/svx/source/core/extedit.cxx
@@ -79,7 +79,7 @@ private:
virtual void execute() SAL_OVERRIDE;
public:
- ExternalToolEditThread(OUString const& rFileName)
+ explicit ExternalToolEditThread(OUString const& rFileName)
: ::salhelper::Thread("ExternalToolEdit")
, m_aFileName(rFileName)
{}
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
index f3656a30d5c1..32d88f5d4f03 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
@@ -98,7 +98,7 @@ class ConstantValueExpression : public ExpressionNode
public:
- ConstantValueExpression( double rValue ) :
+ explicit ConstantValueExpression( double rValue ) :
maValue( rValue )
{
}
@@ -792,7 +792,7 @@ class DoubleConstantFunctor
ParserContextSharedPtr mxContext;
public:
- DoubleConstantFunctor( const ParserContextSharedPtr& rContext ) :
+ explicit DoubleConstantFunctor( const ParserContextSharedPtr& rContext ) :
mxContext( rContext )
{
}
@@ -918,7 +918,7 @@ class IfFunctor
public :
- IfFunctor( const ParserContextSharedPtr& rContext ) :
+ explicit IfFunctor( const ParserContextSharedPtr& rContext ) :
mxContext( rContext )
{
}
@@ -1006,7 +1006,7 @@ public:
@param rParserContext
Contains context info for the parser
*/
- ExpressionGrammar( const ParserContextSharedPtr& rParserContext ) :
+ explicit ExpressionGrammar( const ParserContextSharedPtr& rParserContext ) :
mpParserContext( rParserContext )
{
}
@@ -1015,7 +1015,7 @@ public:
{
public:
// grammar definition
- definition( const ExpressionGrammar& self )
+ explicit definition( const ExpressionGrammar& self )
{
using ::boost::spirit::str_p;
using ::boost::spirit::range_p;
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index b7b7217184a8..f544be3fc852 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -62,7 +62,7 @@ class ColorWindow : public Control
public:
- ColorWindow(vcl::Window* pParent)
+ explicit ColorWindow(vcl::Window* pParent)
: Control(pParent, WB_BORDER)
, aColor( COL_WHITE )
{
diff --git a/svx/source/dialog/imapwnd.hxx b/svx/source/dialog/imapwnd.hxx
index ee823a521b37..fa53b9579b6f 100644
--- a/svx/source/dialog/imapwnd.hxx
+++ b/svx/source/dialog/imapwnd.hxx
@@ -72,7 +72,7 @@ public:
SdrObjUserData ( IMapInventor, SVD_IMAP_USERDATA, 0 ),
mpObj ( ) {}
- IMapUserData( const IMapObjectPtr& rIMapObj ) :
+ explicit IMapUserData( const IMapObjectPtr& rIMapObj ) :
SdrObjUserData ( IMapInventor, SVD_IMAP_USERDATA, 0 ),
mpObj ( rIMapObj ) {}
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 421795807ceb..cbca4a2f42b9 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -59,7 +59,7 @@ class RulerDebugWindow : public vcl::Window
{
ListBox aBox;
public:
- RulerDebugWindow(vcl::Window* pParent) :
+ explicit RulerDebugWindow(vcl::Window* pParent) :
Window(pParent, WB_BORDER|WB_SIZEMOVE|WB_DIALOGCONTROL|WB_CLIPCHILDREN|WB_SYSTEMWINDOW),
aBox(this, WB_BORDER)
{
diff --git a/svx/source/engine3d/helperminimaldepth3d.cxx b/svx/source/engine3d/helperminimaldepth3d.cxx
index c5781ff44ea8..626c31e82788 100644
--- a/svx/source/engine3d/helperminimaldepth3d.cxx
+++ b/svx/source/engine3d/helperminimaldepth3d.cxx
@@ -46,7 +46,7 @@ namespace drawinglayer
virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D& rCandidate) SAL_OVERRIDE;
public:
- MinimalDephInViewExtractor(const geometry::ViewInformation3D& rViewInformation)
+ explicit MinimalDephInViewExtractor(const geometry::ViewInformation3D& rViewInformation)
: BaseProcessor3D(rViewInformation),
mfMinimalDepth(DBL_MAX)
{}
diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx
index 2876b4d0b6b9..a488e5e3ac1f 100644
--- a/svx/source/engine3d/scene3d.cxx
+++ b/svx/source/engine3d/scene3d.cxx
@@ -59,7 +59,7 @@ class ImpRemap3DDepth
public:
ImpRemap3DDepth(sal_uInt32 nOrdNum, double fMinimalDepth);
- ImpRemap3DDepth(sal_uInt32 nOrdNum);
+ explicit ImpRemap3DDepth(sal_uInt32 nOrdNum);
~ImpRemap3DDepth();
// for ::std::sort
@@ -116,7 +116,7 @@ class Imp3DDepthRemapper
ImpRemap3DDepthVector maVector;
public:
- Imp3DDepthRemapper(E3dScene& rScene);
+ explicit Imp3DDepthRemapper(E3dScene& rScene);
~Imp3DDepthRemapper();
sal_uInt32 RemapOrdNum(sal_uInt32 nOrdNum) const;
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index 7f4ce943d9c1..8551300b703a 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -93,7 +93,7 @@ class Impl3DMirrorConstructOverlay
drawinglayer::primitive2d::Primitive2DSequence maFullOverlay;
public:
- Impl3DMirrorConstructOverlay(const E3dView& rView);
+ explicit Impl3DMirrorConstructOverlay(const E3dView& rView);
~Impl3DMirrorConstructOverlay();
void SetMirrorAxis(Point aMirrorAxisA, Point aMirrorAxisB);
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index e78f3a85c910..5adf0c81f191 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -981,7 +981,7 @@ protected:
FmXGridPeer* m_pPeer;
public:
- GridListenerDelegator( FmXGridPeer* _pPeer );
+ explicit GridListenerDelegator( FmXGridPeer* _pPeer );
virtual ~GridListenerDelegator();
protected:
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 76920e17650c..04d474635cf5 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -89,7 +89,7 @@ class RowSetEventListener : public ::cppu::WeakImplHelper1<XRowsChangeListener>
{
VclPtr<DbGridControl> m_pControl;
public:
- RowSetEventListener(DbGridControl* i_pControl) : m_pControl(i_pControl)
+ explicit RowSetEventListener(DbGridControl* i_pControl) : m_pControl(i_pControl)
{
}
@@ -256,7 +256,7 @@ class FmXGridSourcePropListener : public ::comphelper::OPropertyChangeListener
sal_Int16 m_nSuspended;
public:
- FmXGridSourcePropListener(DbGridControl* _pParent);
+ explicit FmXGridSourcePropListener(DbGridControl* _pParent);
void suspend() { ++m_nSuspended; }
void resume() { --m_nSuspended; }
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index ca3acd9f2a9e..6ec506815821 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -119,9 +119,9 @@ namespace svxform
Reference< css::xml::dom::XNode > m_xNode;
Reference< XPropertySet > m_xPropSet;
- ItemNode( const Reference< css::xml::dom::XNode >& _rxNode ) :
+ explicit ItemNode( const Reference< css::xml::dom::XNode >& _rxNode ) :
m_xNode( _rxNode ) {}
- ItemNode( const Reference< XPropertySet >& _rxSet ) :
+ explicit ItemNode( const Reference< XPropertySet >& _rxSet ) :
m_xPropSet( _rxSet ) {}
};
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 0ac78dfb6d07..792efa855ef0 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -231,7 +231,7 @@ class FmFilterHint : public SfxHint
FmFilterData* m_pData;
public:
- FmFilterHint(FmFilterData* pData):m_pData(pData){}
+ explicit FmFilterHint(FmFilterData* pData):m_pData(pData){}
FmFilterData* GetData() const { return m_pData; }
};
@@ -252,7 +252,7 @@ public:
class FmFilterRemovedHint : public FmFilterHint
{
public:
- FmFilterRemovedHint(FmFilterData* pData)
+ explicit FmFilterRemovedHint(FmFilterData* pData)
:FmFilterHint(pData){}
};
@@ -260,7 +260,7 @@ public:
class FmFilterTextChangedHint : public FmFilterHint
{
public:
- FmFilterTextChangedHint(FmFilterData* pData)
+ explicit FmFilterTextChangedHint(FmFilterData* pData)
:FmFilterHint(pData){}
};
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx
index 463ad07e6b09..1956e278d204 100644
--- a/svx/source/form/fmpgeimp.cxx
+++ b/svx/source/form/fmpgeimp.cxx
@@ -127,7 +127,7 @@ namespace
class FormComponentAssignment
{
public:
- FormComponentAssignment( MapControlModels& _out_controlModelMap )
+ explicit FormComponentAssignment( MapControlModels& _out_controlModelMap )
:m_rControlModelMap( _out_controlModelMap )
{
}
diff --git a/svx/source/form/fmscriptingenv.cxx b/svx/source/form/fmscriptingenv.cxx
index a0d81a5bf3b8..07cbcb0e36af 100644
--- a/svx/source/form/fmscriptingenv.cxx
+++ b/svx/source/form/fmscriptingenv.cxx
@@ -87,7 +87,7 @@ namespace svxform
FormScriptingEnvironment *m_pScriptExecutor;
public:
- FormScriptListener( FormScriptingEnvironment * pScriptExecutor );
+ explicit FormScriptListener( FormScriptingEnvironment * pScriptExecutor );
// XScriptListener
virtual void SAL_CALL firing( const ScriptEvent& aEvent ) throw (RuntimeException, std::exception) SAL_OVERRIDE;
@@ -152,7 +152,7 @@ namespace svxform
bool m_bDisposed;
public:
- FormScriptingEnvironment( FmFormModel& _rModel );
+ explicit FormScriptingEnvironment( FmFormModel& _rModel );
virtual ~FormScriptingEnvironment();
// callback for FormScriptListener
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index d208c147ee17..592f1e8ac976 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -2743,7 +2743,7 @@ private:
bool m_bEnabled;
public:
- SuspendPropertyTracking( FmXFormShell& _rShell )
+ explicit SuspendPropertyTracking( FmXFormShell& _rShell )
:m_rShell( _rShell )
,m_bEnabled( false )
{
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index cbd32ba352a5..0b32ca054528 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -79,7 +79,7 @@ typedef cppu::WeakImplHelper1< XScriptListener > ScriptEventListener_BASE;
class ScriptEventListenerWrapper : public ScriptEventListener_BASE
{
public:
- ScriptEventListenerWrapper( FmFormModel& _rModel) throw ( RuntimeException )
+ explicit ScriptEventListenerWrapper( FmFormModel& _rModel) throw ( RuntimeException )
:m_rModel( _rModel )
,m_attemptedListenerCreation( false )
{
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 8044e8b6c6dc..5558b920194c 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -159,12 +159,10 @@ class FmXFormView::ObjectRemoveListener : public SfxListener
{
FmXFormView* m_pParent;
public:
- ObjectRemoveListener( FmXFormView* pParent );
+ explicit ObjectRemoveListener( FmXFormView* pParent );
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
};
-
-
FormViewPageWindowAdapter::FormViewPageWindowAdapter( const css::uno::Reference<css::uno::XComponentContext>& _rContext, const SdrPageWindow& _rWindow, FmXFormView* _pViewImpl )
: m_xControlContainer( _rWindow.GetControlContainer() ),
m_xContext( _rContext ),
diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx
index 9aae5dea5ee1..3af8a0f8c7fa 100644
--- a/svx/source/form/formcontrolfactory.cxx
+++ b/svx/source/form/formcontrolfactory.cxx
@@ -99,7 +99,7 @@ namespace svxform
{
Reference<XComponentContext> m_xContext;
- FormControlFactory_Data( const Reference<XComponentContext>& _rContext )
+ explicit FormControlFactory_Data( const Reference<XComponentContext>& _rContext )
:m_xContext( _rContext )
{
}
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 861c33ff2649..9e5bef901f94 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -247,7 +247,7 @@ struct ColumnInfo
class ColumnInfoCache
{
public:
- ColumnInfoCache( const Reference< XColumnsSupplier >& _rxColSupplier );
+ explicit ColumnInfoCache( const Reference< XColumnsSupplier >& _rxColSupplier );
size_t getColumnCount() const { return m_aColumns.size(); }
const ColumnInfo& getColumnInfo( size_t _pos );
@@ -717,7 +717,7 @@ namespace
struct RemoveComponentTextListener : public ::std::unary_function< Reference< XTextComponent >, void >
{
- RemoveComponentTextListener( const Reference< XTextListener >& _rxListener )
+ explicit RemoveComponentTextListener( const Reference< XTextListener >& _rxListener )
:m_xListener( _rxListener )
{
}
diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx
index e2ef294cc503..db5d2be47e18 100644
--- a/svx/source/form/formcontrolling.cxx
+++ b/svx/source/form/formcontrolling.cxx
@@ -124,7 +124,7 @@ namespace svx
struct MatchFeatureDescriptionByURL : public ::std::unary_function< FeatureDescription, bool >
{
const OUString& m_rURL;
- MatchFeatureDescriptionByURL( const OUString& _rURL ) :m_rURL( _rURL ) { }
+ explicit MatchFeatureDescriptionByURL( const OUString& _rURL ) :m_rURL( _rURL ) { }
bool operator()( const FeatureDescription& _compare )
{
@@ -136,7 +136,7 @@ namespace svx
struct MatchFeatureDescriptionBySlotId : public ::std::unary_function< FeatureDescription, bool >
{
sal_Int32 m_nSlotId;
- MatchFeatureDescriptionBySlotId( sal_Int32 _nSlotId ) :m_nSlotId( _nSlotId ) { }
+ explicit MatchFeatureDescriptionBySlotId( sal_Int32 _nSlotId ) :m_nSlotId( _nSlotId ) { }
bool operator()( const FeatureDescription& _compare )
{
@@ -148,7 +148,7 @@ namespace svx
struct MatchFeatureDescriptionByFormFeature : public ::std::unary_function< FeatureDescription, bool >
{
sal_Int32 m_nFormFeature;
- MatchFeatureDescriptionByFormFeature( sal_Int32 _nFormFeature ) :m_nFormFeature( _nFormFeature ) { }
+ explicit MatchFeatureDescriptionByFormFeature( sal_Int32 _nFormFeature ) :m_nFormFeature( _nFormFeature ) { }
bool operator()( const FeatureDescription& _compare )
{
diff --git a/svx/source/form/legacyformcontroller.cxx b/svx/source/form/legacyformcontroller.cxx
index 010fd70718db..2edb9002fc39 100644
--- a/svx/source/form/legacyformcontroller.cxx
+++ b/svx/source/form/legacyformcontroller.cxx
@@ -76,7 +76,7 @@ namespace svxform
}
protected:
- LegacyFormController( const Reference< XComponentContext >& _rxContext )
+ explicit LegacyFormController( const Reference< XComponentContext >& _rxContext )
:m_xDelegator( FormController::create(_rxContext) )
{
}
diff --git a/svx/source/gallery2/codec.hxx b/svx/source/gallery2/codec.hxx
index 2c7bf58b8c8a..efde247c9475 100644
--- a/svx/source/gallery2/codec.hxx
+++ b/svx/source/gallery2/codec.hxx
@@ -31,8 +31,8 @@ private:
SvStream& rStm;
public:
- GalleryCodec( SvStream& rIOStm );
- ~GalleryCodec();
+ explicit GalleryCodec( SvStream& rIOStm );
+ ~GalleryCodec();
void Write( SvStream& rStmToWrite );
void Read( SvStream& rStmToRead );
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index c1d49fefc85c..76dc9d2c04e6 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -99,7 +99,7 @@ struct CommandInfo
css::util::URL URL;
css::uno::Reference< css::frame::XDispatch > Dispatch;
- CommandInfo( const OUString &rURL )
+ explicit CommandInfo( const OUString &rURL )
{
URL.Complete = rURL;
}
diff --git a/svx/source/sidebar/EmptyPanel.hxx b/svx/source/sidebar/EmptyPanel.hxx
index e85edba32a0a..9a0054a1ef42 100644
--- a/svx/source/sidebar/EmptyPanel.hxx
+++ b/svx/source/sidebar/EmptyPanel.hxx
@@ -34,7 +34,7 @@ class EmptyPanel
: public Control
{
public:
- EmptyPanel (vcl::Window* pParent);
+ explicit EmptyPanel (vcl::Window* pParent);
virtual ~EmptyPanel();
virtual void dispose() SAL_OVERRIDE;
diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx b/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx
index 20e605a388f3..b3d04e538338 100644
--- a/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx
+++ b/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx
@@ -29,7 +29,7 @@ namespace svx {
class ParaLineSpacingControl : public SfxPopupWindow
{
public:
- ParaLineSpacingControl(sal_uInt16 nId);
+ explicit ParaLineSpacingControl(sal_uInt16 nId);
virtual ~ParaLineSpacingControl();
virtual void dispose() SAL_OVERRIDE;
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index d4acca719c07..951317c7ab72 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -94,7 +94,7 @@ SFX_IMPL_STATUSBAR_CONTROL(SvxPosSizeStatusBarControl, SvxSizeItem);
class FunctionPopup_Impl : public PopupMenu
{
public:
- FunctionPopup_Impl( sal_uInt16 nCheck );
+ explicit FunctionPopup_Impl( sal_uInt16 nCheck );
sal_uInt16 GetSelected() const { return nSelected; }
diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx
index 9fe589ac85b8..5ddf609bc932 100644
--- a/svx/source/stbctrls/selctrl.cxx
+++ b/svx/source/stbctrls/selctrl.cxx
@@ -35,7 +35,7 @@ SFX_IMPL_STATUSBAR_CONTROL(SvxSelectionModeControl, SfxUInt16Item);
class SelectionTypePopup : public PopupMenu
{
public:
- SelectionTypePopup( sal_uInt16 nCurrent );
+ explicit SelectionTypePopup( sal_uInt16 nCurrent );
};
/// Item id's cannot start from 0, so we need to convert
diff --git a/svx/source/svdraw/svddrgm1.hxx b/svx/source/svdraw/svddrgm1.hxx
index e9daf6fa4444..059413e9c3a5 100644
--- a/svx/source/svdraw/svddrgm1.hxx
+++ b/svx/source/svdraw/svddrgm1.hxx
@@ -35,7 +35,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- SdrDragMovHdl(SdrDragView& rNewView);
+ explicit SdrDragMovHdl(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
@@ -56,7 +56,7 @@ private:
public:
TYPEINFO_OVERRIDE();
- SdrDragRotate(SdrDragView& rNewView);
+ explicit SdrDragRotate(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
@@ -106,7 +106,7 @@ private:
public:
TYPEINFO_OVERRIDE();
- SdrDragMirror(SdrDragView& rNewView);
+ explicit SdrDragMirror(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
@@ -178,7 +178,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- SdrDragCrook(SdrDragView& rNewView);
+ explicit SdrDragCrook(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
@@ -209,7 +209,7 @@ protected:
public:
TYPEINFO_OVERRIDE();
- SdrDragDistort(SdrDragView& rNewView);
+ explicit SdrDragDistort(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
@@ -227,7 +227,7 @@ class SdrDragCrop : public SdrDragObjOwn
{
public:
TYPEINFO_OVERRIDE();
- SdrDragCrop(SdrDragView& rNewView);
+ explicit SdrDragCrop(SdrDragView& rNewView);
virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
virtual bool BeginSdrDrag() SAL_OVERRIDE;
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index c007892e64cc..75575da53690 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -89,7 +89,7 @@ class SdrHdlBitmapSet
BitmapEx& impGetOrCreateTargetBitmap(sal_uInt16 nIndex, const Rectangle& rRectangle);
public:
- SdrHdlBitmapSet(sal_uInt16 nResId);
+ explicit SdrHdlBitmapSet(sal_uInt16 nResId);
~SdrHdlBitmapSet();
const BitmapEx& GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd=0);
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 2fa62cc96e3c..1fe09ee5b237 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -111,7 +111,7 @@ class SdrGraphicLink : public sfx2::SvBaseLink
SdrGraphicUpdater* pGraphicUpdater;
public:
- SdrGraphicLink(SdrGrafObj& rObj);
+ explicit SdrGraphicLink(SdrGrafObj& rObj);
virtual ~SdrGraphicLink();
virtual void Closed() SAL_OVERRIDE;
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 403646b6f10e..e567960994ed 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -118,7 +118,7 @@ class SdrLightEmbeddedClient_Impl : public ::cppu::WeakImplHelper5
public:
- SdrLightEmbeddedClient_Impl( SdrOle2Obj* pObj );
+ explicit SdrLightEmbeddedClient_Impl( SdrOle2Obj* pObj );
void Release();
void SetSizeScale( const Fraction& aScaleWidth, const Fraction& aScaleHeight )
@@ -595,7 +595,7 @@ class SdrEmbedObjectLink : public sfx2::SvBaseLink
SdrOle2Obj* pObj;
public:
- SdrEmbedObjectLink(SdrOle2Obj* pObj);
+ explicit SdrEmbedObjectLink(SdrOle2Obj* pObj);
virtual ~SdrEmbedObjectLink();
virtual void Closed() SAL_OVERRIDE;
@@ -692,7 +692,7 @@ public:
SvxUnoShapeModifyListener* mpModifyListener;
- SdrOle2ObjImpl( bool bFrame ) :
+ explicit SdrOle2ObjImpl( bool bFrame ) :
mpGraphic(NULL),
mpGraphicObject(NULL),
pLightClient (NULL),
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index b570e7ffccb2..e84014baa5bc 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -510,7 +510,7 @@ class ImpPathForDragAndCreate
bool mbCreating;
public:
- ImpPathForDragAndCreate(SdrPathObj& rSdrPathObject);
+ explicit ImpPathForDragAndCreate(SdrPathObj& rSdrPathObject);
~ImpPathForDragAndCreate();
// drag stuff
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx
index 71b4f7e7c649..f10dc9279832 100644
--- a/svx/source/svdraw/svdotextdecomposition.cxx
+++ b/svx/source/svdraw/svdotextdecomposition.cxx
@@ -106,7 +106,7 @@ namespace
void impHandleDrawBulletInfo(const DrawBulletInfo& rInfo);
public:
- impTextBreakupHandler(SdrOutliner& rOutliner)
+ explicit impTextBreakupHandler(SdrOutliner& rOutliner)
: maTextPortionPrimitives(),
maLinePrimitives(),
maParagraphPrimitives(),
diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx
index 252d39ab0558..a96a714ab36b 100644
--- a/svx/source/svdraw/svdotextpathdecomposition.cxx
+++ b/svx/source/svdraw/svdotextpathdecomposition.cxx
@@ -83,7 +83,7 @@ namespace
bool mbRTL : 1;
public:
- impPathTextPortion(DrawPortionInfo& rInfo)
+ explicit impPathTextPortion(DrawPortionInfo& rInfo)
: maOffset(rInfo.mrStartPos.X(), rInfo.mrStartPos.Y()),
maText(rInfo.maText),
mnTextStart(rInfo.mnTextStart),
@@ -174,7 +174,7 @@ namespace
DECL_LINK(decompositionPathTextPrimitive, DrawPortionInfo* );
public:
- impTextBreakupHandler(SdrOutliner& rOutliner)
+ explicit impTextBreakupHandler(SdrOutliner& rOutliner)
: mrOutliner(rOutliner)
{
}
diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx
index c0913d2ce7bd..350ffa4f62b3 100644
--- a/svx/source/svdraw/svdotxln.cxx
+++ b/svx/source/svdraw/svdotxln.cxx
@@ -40,7 +40,7 @@ class ImpSdrObjTextLink: public ::sfx2::SvBaseLink
SdrTextObj* pSdrObj;
public:
- ImpSdrObjTextLink( SdrTextObj* pObj1 )
+ explicit ImpSdrObjTextLink( SdrTextObj* pObj1 )
: ::sfx2::SvBaseLink( ::SfxLinkUpdateMode::ONCALL, SotClipboardFormatId::SIMPLE_FILE ),
pSdrObj( pObj1 )
{}
diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx
index aac9a6d8711f..744fcdec32e6 100644
--- a/svx/source/svdraw/svdouno.cxx
+++ b/svx/source/svdraw/svdouno.cxx
@@ -71,7 +71,7 @@ protected:
SdrUnoObj* pObj;
public:
- SdrControlEventListenerImpl(SdrUnoObj* _pObj)
+ explicit SdrControlEventListenerImpl(SdrUnoObj* _pObj)
: pObj(_pObj)
{}
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 7d2d701ea44a..648a675d078f 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -63,7 +63,7 @@ class SdrObjList::WeakSdrObjectContainerType
: public ::std::vector<SdrObjectWeakRef>
{
public:
- WeakSdrObjectContainerType (const sal_Int32 nInitialSize)
+ explicit WeakSdrObjectContainerType (const sal_Int32 nInitialSize)
: ::std::vector<SdrObjectWeakRef>(nInitialSize) {};
};
diff --git a/svx/source/table/accessibletableshape.cxx b/svx/source/table/accessibletableshape.cxx
index a0841f0b4ce1..8524cf631294 100644
--- a/svx/source/table/accessibletableshape.cxx
+++ b/svx/source/table/accessibletableshape.cxx
@@ -64,7 +64,7 @@ typedef std::unordered_map< Reference< XCell >, rtl::Reference< AccessibleCell >
class AccessibleTableShapeImpl : public cppu::WeakImplHelper1< XModifyListener >
{
public:
- AccessibleTableShapeImpl( AccessibleShapeTreeInfo& rShapeTreeInfo );
+ explicit AccessibleTableShapeImpl( AccessibleShapeTreeInfo& rShapeTreeInfo );
void init( const Reference< XAccessible>& xAccessible, const Reference< XTable >& xTable );
void dispose();
diff --git a/svx/source/table/propertyset.hxx b/svx/source/table/propertyset.hxx
index 001212b7bfff..a3605b2e6927 100644
--- a/svx/source/table/propertyset.hxx
+++ b/svx/source/table/propertyset.hxx
@@ -39,7 +39,7 @@ typedef std::unordered_map< OUString, ::sal_uInt32, OUStringHash, std::equal_to<
class FastPropertySetInfo : public ::cppu::WeakAggImplHelper1< ::com::sun::star::beans::XPropertySetInfo >
{
public:
- FastPropertySetInfo( const PropertyVector& rProps );
+ explicit FastPropertySetInfo( const PropertyVector& rProps );
virtual ~FastPropertySetInfo();
void addProperties( const PropertyVector& rProps );
@@ -62,7 +62,7 @@ private:
class FastPropertySet : public ::cppu::WeakAggImplHelper3< ::com::sun::star::beans::XPropertySet, ::com::sun::star::beans::XMultiPropertySet, ::com::sun::star::beans::XFastPropertySet >
{
public:
- FastPropertySet( const rtl::Reference< FastPropertySetInfo >& xInfo );
+ explicit FastPropertySet( const rtl::Reference< FastPropertySetInfo >& xInfo );
virtual ~FastPropertySet();
// XPropertySet
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index a308c34f03de..a3235a2fb418 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -89,7 +89,7 @@ protected:
public:
// basic constructor
- TableProperties(SdrObject& rObj );
+ explicit TableProperties(SdrObject& rObj );
// constructor for copying, but using new object
TableProperties(const TableProperties& rProps, SdrObject& rObj );
diff --git a/svx/source/table/tablecolumns.hxx b/svx/source/table/tablecolumns.hxx
index e940cb6a7d7b..093c207f271f 100644
--- a/svx/source/table/tablecolumns.hxx
+++ b/svx/source/table/tablecolumns.hxx
@@ -32,7 +32,7 @@ namespace sdr { namespace table {
class TableColumns : public ::cppu::WeakAggImplHelper1< ::com::sun::star::table::XTableColumns >
{
public:
- TableColumns( const TableModelRef& xTableModel );
+ explicit TableColumns( const TableModelRef& xTableModel );
virtual ~TableColumns();
void dispose();
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 38a41b5ae04f..6efe83306d89 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -86,7 +86,7 @@ namespace sdr { namespace table {
class SvxTableControllerModifyListener : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XModifyListener >
{
public:
- SvxTableControllerModifyListener( SvxTableController* pController )
+ explicit SvxTableControllerModifyListener( SvxTableController* pController )
: mpController( pController ) {}
// XModifyListener
diff --git a/svx/source/table/tablelayouter.hxx b/svx/source/table/tablelayouter.hxx
index 642128bbf2e9..6db14862a9ab 100644
--- a/svx/source/table/tablelayouter.hxx
+++ b/svx/source/table/tablelayouter.hxx
@@ -57,7 +57,7 @@ typedef std::vector< BorderLineVector > BorderLineMap;
class TableLayouter
{
public:
- TableLayouter( const TableModelRef& xTableModel );
+ explicit TableLayouter( const TableModelRef& xTableModel );
virtual ~TableLayouter();
/** try to fit the table into the given rectangle.
diff --git a/svx/source/table/tablemodel.hxx b/svx/source/table/tablemodel.hxx
index 8ad480ec2056..757711c199af 100644
--- a/svx/source/table/tablemodel.hxx
+++ b/svx/source/table/tablemodel.hxx
@@ -69,7 +69,7 @@ class TableModel : public ::comphelper::OBaseMutex,
friend class TableModelNotifyGuard;
public:
- TableModel( SdrTableObj* pTableObj );
+ explicit TableModel( SdrTableObj* pTableObj );
TableModel( SdrTableObj* pTableObj, const TableModelRef& xSourceTable );
virtual ~TableModel();
@@ -183,14 +183,14 @@ private:
class TableModelNotifyGuard
{
public:
- TableModelNotifyGuard( TableModel* pModel )
+ explicit TableModelNotifyGuard( TableModel* pModel )
: mxBroadcaster( static_cast< ::com::sun::star::util::XBroadcaster* >( pModel ) )
{
if( mxBroadcaster.is() )
mxBroadcaster->lockBroadcasts();
}
- TableModelNotifyGuard( ::com::sun::star::uno::XInterface* pInterface )
+ explicit TableModelNotifyGuard( ::com::sun::star::uno::XInterface* pInterface )
: mxBroadcaster( pInterface, ::com::sun::star::uno::UNO_QUERY )
{
if( mxBroadcaster.is() )
diff --git a/svx/source/table/tablerows.hxx b/svx/source/table/tablerows.hxx
index bf681a53a1fb..6a8b887be0cd 100644
--- a/svx/source/table/tablerows.hxx
+++ b/svx/source/table/tablerows.hxx
@@ -32,7 +32,7 @@ namespace sdr { namespace table {
class TableRows : public ::cppu::WeakAggImplHelper1< ::com::sun::star::table::XTableRows >
{
public:
- TableRows( const TableModelRef& xTableModel );
+ explicit TableRows( const TableModelRef& xTableModel );
virtual ~TableRows();
void dispose();
diff --git a/svx/source/table/tablertfimporter.cxx b/svx/source/table/tablertfimporter.cxx
index e0c83401f254..6f5655f26583 100644
--- a/svx/source/table/tablertfimporter.cxx
+++ b/svx/source/table/tablertfimporter.cxx
@@ -55,7 +55,7 @@ struct RTFCellDefault
sal_uInt16 mnTwips; // right border of the cell
sal_Int32 mnColSpan; // MergeCell if >1, merged cells if 0
- RTFCellDefault( SfxItemPool* pPool ) : maItemSet( *pPool ), mnCol(0), mnTwips(0 ), mnColSpan(1) {}
+ explicit RTFCellDefault( SfxItemPool* pPool ) : maItemSet( *pPool ), mnCol(0), mnTwips(0 ), mnColSpan(1) {}
};
typedef std::vector< boost::shared_ptr< RTFCellDefault > > RTFCellDefaultVector;
@@ -67,7 +67,7 @@ struct RTFCellInfo
sal_Int32 mnParaCount;
sal_Int32 mnColSpan;
- RTFCellInfo( SfxItemPool& rPool ) : maItemSet( rPool ), mnStartPara(0), mnParaCount(0), mnColSpan(0) {}
+ explicit RTFCellInfo( SfxItemPool& rPool ) : maItemSet( rPool ), mnStartPara(0), mnParaCount(0), mnColSpan(0) {}
};
typedef boost::shared_ptr< RTFCellInfo > RTFCellInfoPtr;
@@ -80,7 +80,7 @@ typedef std::vector< RTFColumnVectorPtr > RTFRowVector;
class SdrTableRTFParser
{
public:
- SdrTableRTFParser( SdrTableObj& rTableObj );
+ explicit SdrTableRTFParser( SdrTableObj& rTableObj );
~SdrTableRTFParser();
void Read( SvStream& rStream );
diff --git a/svx/source/table/tableundo.hxx b/svx/source/table/tableundo.hxx
index c9747cb635bb..630068e7bc64 100644
--- a/svx/source/table/tableundo.hxx
+++ b/svx/source/table/tableundo.hxx
@@ -170,7 +170,7 @@ private:
class TableColumnUndo : public SdrUndoAction
{
public:
- TableColumnUndo( const TableColumnRef& xCol );
+ explicit TableColumnUndo( const TableColumnRef& xCol );
virtual ~TableColumnUndo();
virtual void Undo() SAL_OVERRIDE;
@@ -202,7 +202,7 @@ private:
class TableRowUndo : public SdrUndoAction
{
public:
- TableRowUndo( const TableRowRef& xRow );
+ explicit TableRowUndo( const TableRowRef& xRow );
virtual ~TableRowUndo();
virtual void Undo() SAL_OVERRIDE;
@@ -230,12 +230,10 @@ private:
bool mbHasRedoData;
};
-
-
class TableStyleUndo : public SdrUndoAction
{
public:
- TableStyleUndo( const SdrTableObj& rTableObj );
+ explicit TableStyleUndo( const SdrTableObj& rTableObj );
virtual void Undo() SAL_OVERRIDE;
virtual void Redo() SAL_OVERRIDE;
diff --git a/svx/source/table/viewcontactoftableobj.hxx b/svx/source/table/viewcontactoftableobj.hxx
index 737fc11289fc..87544541b353 100644
--- a/svx/source/table/viewcontactoftableobj.hxx
+++ b/svx/source/table/viewcontactoftableobj.hxx
@@ -42,7 +42,7 @@ namespace sdr
public:
// basic constructor, used from SdrObject.
- ViewContactOfTableObj(sdr::table::SdrTableObj& rTextObj);
+ explicit ViewContactOfTableObj(sdr::table::SdrTableObj& rTextObj);
virtual ~ViewContactOfTableObj();
};
} // end of namespace contact
diff --git a/svx/source/tbxctrls/bulletsnumbering.cxx b/svx/source/tbxctrls/bulletsnumbering.cxx
index 022bf9bbedd4..894c67a69ff6 100644
--- a/svx/source/tbxctrls/bulletsnumbering.cxx
+++ b/svx/source/tbxctrls/bulletsnumbering.cxx
@@ -59,7 +59,7 @@ class NumberingToolBoxControl : public svt::PopupWindowController
bool mbBulletItem;
public:
- NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
+ explicit NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
bool IsInImpressDraw();
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx
index 54f7260d9af0..dbd7f2f3e103 100644
--- a/svx/source/tbxctrls/colrctrl.cxx
+++ b/svx/source/tbxctrls/colrctrl.cxx
@@ -44,7 +44,6 @@ using namespace com::sun::star;
// - SvxColorValueSetData -
-
class SvxColorValueSetData : public TransferableHelper
{
private:
@@ -59,19 +58,15 @@ protected:
public:
- SvxColorValueSetData( const XFillAttrSetItem& rSetItem ) :
- maData( rSetItem ) {}
+ explicit SvxColorValueSetData( const XFillAttrSetItem& rSetItem ) :
+ maData( rSetItem ) {}
};
-
-
void SvxColorValueSetData::AddSupportedFormats()
{
AddFormat( SotClipboardFormatId::XFA );
}
-
-
bool SvxColorValueSetData::GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& /*rDestDoc*/ )
{
bool bRet = false;
diff --git a/svx/source/tbxctrls/extrusioncontrols.hxx b/svx/source/tbxctrls/extrusioncontrols.hxx
index d94de5301b87..c4c432278f0f 100644
--- a/svx/source/tbxctrls/extrusioncontrols.hxx
+++ b/svx/source/tbxctrls/extrusioncontrols.hxx
@@ -71,7 +71,7 @@ private:
class ExtrusionDirectionControl : public svt::PopupWindowController
{
public:
- ExtrusionDirectionControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit ExtrusionDirectionControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
@@ -118,7 +118,7 @@ public:
class ExtrusionDepthController : public svt::PopupWindowController
{
public:
- ExtrusionDepthController( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit ExtrusionDepthController( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
@@ -175,7 +175,7 @@ public:
class ExtrusionLightingControl : public svt::PopupWindowController
{
public:
- ExtrusionLightingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit ExtrusionLightingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
@@ -219,7 +219,7 @@ public:
class ExtrusionSurfaceControl : public svt::PopupWindowController
{
public:
- ExtrusionSurfaceControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit ExtrusionSurfaceControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 2cd3fa3ed24e..e7672fd69432 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -394,7 +394,7 @@ IMPL_LINK_NOARG(FontworkAlignmentWindow, SelectHdl)
class FontworkAlignmentControl : public svt::PopupWindowController
{
public:
- FontworkAlignmentControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit FontworkAlignmentControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
@@ -634,7 +634,7 @@ IMPL_LINK_NOARG(FontworkCharacterSpacingWindow, SelectHdl)
class FontworkCharacterSpacingControl : public svt::PopupWindowController
{
public:
- FontworkCharacterSpacingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
+ explicit FontworkCharacterSpacingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE;
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index eb25ce945b3f..09a6cbf31dd5 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -47,7 +47,7 @@ class FontHeightToolBoxControl : public svt::ToolboxController,
public lang::XServiceInfo
{
public:
- FontHeightToolBoxControl(
+ explicit FontHeightToolBoxControl(
const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rServiceManager );
virtual ~FontHeightToolBoxControl();
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx
index 50498b4d5d91..5e7f82954779 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx
@@ -113,7 +113,7 @@ private:
class ChineseDictionaryDialog : public ModalDialog
{
public:
- ChineseDictionaryDialog( vcl::Window* pParent );
+ explicit ChineseDictionaryDialog( vcl::Window* pParent );
virtual ~ChineseDictionaryDialog();
virtual void dispose() SAL_OVERRIDE;
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx
index 9c39681f77f8..95a3a32a0feb 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx
@@ -71,7 +71,7 @@ class ChineseTranslation_UnoDialog : public ::cppu::WeakImplHelper5 <
// ,public ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper
{
public:
- ChineseTranslation_UnoDialog( const ::com::sun::star::uno::Reference<
+ explicit ChineseTranslation_UnoDialog( const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& xContext );
virtual ~ChineseTranslation_UnoDialog();
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
index 0ec0bf32f2be..cb0715591e16 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
@@ -37,7 +37,7 @@ class ChineseDictionaryDialog;
class ChineseTranslationDialog : public ModalDialog
{
public:
- ChineseTranslationDialog( vcl::Window* pParent );
+ explicit ChineseTranslationDialog( vcl::Window* pParent );
virtual ~ChineseTranslationDialog();
virtual void dispose() SAL_OVERRIDE;
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 166b989bf1c1..449e34c39ed5 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -114,7 +114,7 @@ namespace {
Fraction maScaleX;
Fraction maScaleY;
- ExportSettings( SdrModel* pDoc );
+ explicit ExportSettings( SdrModel* pDoc );
};
ExportSettings::ExportSettings( SdrModel* pDoc )
@@ -284,7 +284,7 @@ namespace {
class ImplExportCheckVisisbilityRedirector : public sdr::contact::ViewObjectContactRedirector
{
public:
- ImplExportCheckVisisbilityRedirector( SdrPage* pCurrentPage );
+ explicit ImplExportCheckVisisbilityRedirector( SdrPage* pCurrentPage );
virtual ~ImplExportCheckVisisbilityRedirector();
virtual drawinglayer::primitive2d::Primitive2DSequence createRedirectedPrimitive2DSequence(
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx
index c689c7f5be6f..aac26c4a4ecc 100644
--- a/svx/source/unodraw/XPropertyTable.cxx
+++ b/svx/source/unodraw/XPropertyTable.cxx
@@ -246,7 +246,7 @@ sal_Bool SAL_CALL SvxUnoXPropertyTable::hasElements( )
class SvxUnoXColorTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXColorTable( XPropertyList* pList ) throw() : SvxUnoXPropertyTable( XATTR_LINECOLOR, pList ) {};
+ explicit SvxUnoXColorTable( XPropertyList* pList ) throw() : SvxUnoXPropertyTable( XATTR_LINECOLOR, pList ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE;
@@ -308,7 +308,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXColorTable::getSupportedServiceNames(
class SvxUnoXLineEndTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXLineEndTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEEND, pTable ) {};
+ explicit SvxUnoXLineEndTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEEND, pTable ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE;
@@ -381,7 +381,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXLineEndTable::getSupportedServiceName
class SvxUnoXDashTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXDashTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEDASH, pTable ) {};
+ explicit SvxUnoXDashTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEDASH, pTable ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE;
@@ -462,7 +462,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXDashTable::getSupportedServiceNames(
class SvxUnoXHatchTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXHatchTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLHATCH, pTable ) {};
+ explicit SvxUnoXHatchTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLHATCH, pTable ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE;
@@ -538,7 +538,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXHatchTable::getSupportedServiceNames(
class SvxUnoXGradientTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXGradientTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLGRADIENT, pTable ) {};
+ explicit SvxUnoXGradientTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLGRADIENT, pTable ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE;
@@ -626,7 +626,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXGradientTable::getSupportedServiceNam
class SvxUnoXBitmapTable : public SvxUnoXPropertyTable
{
public:
- SvxUnoXBitmapTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLBITMAP, pTable ) {};
+ explicit SvxUnoXBitmapTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLBITMAP, pTable ) {};
// SvxUnoXPropertyTable
virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw(uno::RuntimeException) SAL_OVERRIDE;
diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx
index 08108b2c8d8b..f2c156bbd608 100644
--- a/svx/source/unodraw/gluepts.cxx
+++ b/svx/source/unodraw/gluepts.cxx
@@ -41,7 +41,7 @@ private:
SdrObjectWeakRef mpObject;
public:
- SvxUnoGluePointAccess( SdrObject* pObject ) throw();
+ explicit SvxUnoGluePointAccess( SdrObject* pObject ) throw();
virtual ~SvxUnoGluePointAccess() throw();
// XIdentifierContainer
diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx
index ba9b5c83e54f..b7a702c196c3 100644
--- a/svx/source/unodraw/recoveryui.cxx
+++ b/svx/source/unodraw/recoveryui.cxx
@@ -81,7 +81,7 @@ class RecoveryUI : public ::cppu::WeakImplHelper2< css::lang::XServiceInfo
/** @short TODO */
- RecoveryUI(const css::uno::Reference< css::uno::XComponentContext >& xContext);
+ explicit RecoveryUI(const css::uno::Reference< css::uno::XComponentContext >& xContext);
/** @short TODO */
diff --git a/svx/source/unodraw/shapeimpl.hxx b/svx/source/unodraw/shapeimpl.hxx
index 4477b85a5dc2..ba97c9f9569f 100644
--- a/svx/source/unodraw/shapeimpl.hxx
+++ b/svx/source/unodraw/shapeimpl.hxx
@@ -23,7 +23,7 @@
class SvxShapeCaption : public SvxShapeText
{
public:
- SvxShapeCaption( SdrObject* pObj ) throw();
+ explicit SvxShapeCaption( SdrObject* pObj ) throw();
virtual ~SvxShapeCaption() throw();
};
class SvxPluginShape : public SvxOle2Shape
@@ -34,7 +34,7 @@ protected:
virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
public:
- SvxPluginShape( SdrObject* pObj ) throw();
+ explicit SvxPluginShape( SdrObject* pObj ) throw();
virtual ~SvxPluginShape() throw();
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -52,7 +52,7 @@ protected:
virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
public:
- SvxAppletShape( SdrObject* pObj ) throw();
+ explicit SvxAppletShape( SdrObject* pObj ) throw();
virtual ~SvxAppletShape() throw();
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -75,7 +75,7 @@ protected:
std::exception) SAL_OVERRIDE;
public:
- SvxFrameShape( SdrObject* pObj ) throw();
+ explicit SvxFrameShape( SdrObject* pObj ) throw();
virtual ~SvxFrameShape() throw();
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -101,7 +101,7 @@ protected:
public:
- SvxTableShape( SdrObject* pObj ) throw();
+ explicit SvxTableShape( SdrObject* pObj ) throw();
virtual ~SvxTableShape() throw();
};
diff --git a/svx/source/unodraw/unobtabl.cxx b/svx/source/unodraw/unobtabl.cxx
index 038f6d2166f8..32bed87b4174 100644
--- a/svx/source/unodraw/unobtabl.cxx
+++ b/svx/source/unodraw/unobtabl.cxx
@@ -38,7 +38,7 @@ using namespace ::cppu;
class SvxUnoBitmapTable : public SvxUnoNameItemTable
{
public:
- SvxUnoBitmapTable( SdrModel* pModel ) throw();
+ explicit SvxUnoBitmapTable( SdrModel* pModel ) throw();
virtual ~SvxUnoBitmapTable() throw();
virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE;
diff --git a/svx/source/unodraw/unodtabl.cxx b/svx/source/unodraw/unodtabl.cxx
index 875aac4d696f..907f409689d6 100644
--- a/svx/source/unodraw/unodtabl.cxx
+++ b/svx/source/unodraw/unodtabl.cxx
@@ -36,7 +36,7 @@ using namespace ::cppu;
class SvxUnoDashTable : public SvxUnoNameItemTable
{
public:
- SvxUnoDashTable( SdrModel* pModel ) throw();
+ explicit SvxUnoDashTable( SdrModel* pModel ) throw();
virtual ~SvxUnoDashTable() throw();
virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE;
diff --git a/svx/source/unodraw/unogtabl.cxx b/svx/source/unodraw/unogtabl.cxx
index 58e8ff63b382..6ccdda841b9c 100644
--- a/svx/source/unodraw/unogtabl.cxx
+++ b/svx/source/unodraw/unogtabl.cxx
@@ -35,7 +35,7 @@ using namespace ::cppu;
class SvxUnoGradientTable : public SvxUnoNameItemTable
{
public:
- SvxUnoGradientTable( SdrModel* pModel ) throw();
+ explicit SvxUnoGradientTable( SdrModel* pModel ) throw();
virtual ~SvxUnoGradientTable() throw();
virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE;
diff --git a/svx/source/unodraw/unohtabl.cxx b/svx/source/unodraw/unohtabl.cxx
index 545397caee92..738dfe8bf0b9 100644
--- a/svx/source/unodraw/unohtabl.cxx
+++ b/svx/source/unodraw/unohtabl.cxx
@@ -35,7 +35,7 @@ using namespace ::cppu;
class SvxUnoHatchTable : public SvxUnoNameItemTable
{
public:
- SvxUnoHatchTable( SdrModel* pModel ) throw();
+ explicit SvxUnoHatchTable( SdrModel* pModel ) throw();
virtual ~SvxUnoHatchTable() throw();
virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE;
diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx
index 05b938416da2..661ffa4827d7 100644
--- a/svx/source/unodraw/unomod.cxx
+++ b/svx/source/unodraw/unomod.cxx
@@ -72,7 +72,7 @@ private:
SvxUnoDrawingModel& mrModel;
public:
- SvxUnoDrawPagesAccess( SvxUnoDrawingModel& rMyModel ) throw();
+ explicit SvxUnoDrawPagesAccess( SvxUnoDrawingModel& rMyModel ) throw();
virtual ~SvxUnoDrawPagesAccess() throw();
// XDrawPages
diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx
index a0d9e57d9450..054755145755 100644
--- a/svx/source/unodraw/unomtabl.cxx
+++ b/svx/source/unodraw/unomtabl.cxx
@@ -59,7 +59,7 @@ private:
ItemPoolVector maItemSetVector;
public:
- SvxUnoMarkerTable( SdrModel* pModel ) throw();
+ explicit SvxUnoMarkerTable( SdrModel* pModel ) throw();
virtual ~SvxUnoMarkerTable() throw();
void dispose();
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 5a376d3e3335..c24737d9251b 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -144,7 +144,7 @@ struct SvxShapeImpl
class ShapePositionProvider : public PropertyValueProvider
{
public:
- ShapePositionProvider( const SvxShapeImpl& _shapeImpl )
+ explicit ShapePositionProvider( const SvxShapeImpl& _shapeImpl )
:PropertyValueProvider( _shapeImpl.mrAntiImpl, "Position" )
{
}
@@ -160,7 +160,7 @@ protected:
class ShapeSizeProvider : public PropertyValueProvider
{
public:
- ShapeSizeProvider( const SvxShapeImpl& _shapeImpl )
+ explicit ShapeSizeProvider( const SvxShapeImpl& _shapeImpl )
:PropertyValueProvider( _shapeImpl.mrAntiImpl, "Size" )
{
}
diff --git a/svx/source/unodraw/unottabl.cxx b/svx/source/unodraw/unottabl.cxx
index 725f2e88875d..766dac46748f 100644
--- a/svx/source/unodraw/unottabl.cxx
+++ b/svx/source/unodraw/unottabl.cxx
@@ -35,7 +35,7 @@ using namespace ::cppu;
class SvxUnoTransGradientTable : public SvxUnoNameItemTable
{
public:
- SvxUnoTransGradientTable( SdrModel* pModel ) throw();
+ explicit SvxUnoTransGradientTable( SdrModel* pModel ) throw();
virtual ~SvxUnoTransGradientTable() throw();
virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE;
diff --git a/svx/source/unogallery/unogalitem.hxx b/svx/source/unogallery/unogalitem.hxx
index 9b57dafd3bdd..e579e0efa88e 100644
--- a/svx/source/unogallery/unogalitem.hxx
+++ b/svx/source/unogallery/unogalitem.hxx
@@ -107,7 +107,7 @@ class GalleryDrawingModel : public SvxUnoDrawingModel
{
public:
- GalleryDrawingModel( SdrModel* pDoc ) throw();
+ explicit GalleryDrawingModel( SdrModel* pDoc ) throw();
virtual ~GalleryDrawingModel() throw();
UNO3_GETIMPLEMENTATION_DECL( GalleryDrawingModel )
diff --git a/svx/source/unogallery/unogaltheme.hxx b/svx/source/unogallery/unogaltheme.hxx
index 88d8afd86582..f09222c564d3 100644
--- a/svx/source/unogallery/unogaltheme.hxx
+++ b/svx/source/unogallery/unogaltheme.hxx
@@ -47,7 +47,7 @@ class GalleryTheme : public ::cppu::WeakImplHelper2<
public:
- GalleryTheme( const OUString& rThemeName );
+ explicit GalleryTheme( const OUString& rThemeName );
virtual ~GalleryTheme();
static OUString getImplementationName_Static() throw();
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index dba2a919ce3d..0088c7926fbb 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -90,7 +90,7 @@ private:
public:
- SvXMLGraphicInputStream( const OUString& rGraphicId );
+ explicit SvXMLGraphicInputStream( const OUString& rGraphicId );
virtual ~SvXMLGraphicInputStream();
bool Exists() const { return mxStmWrapper.is(); }
@@ -914,7 +914,7 @@ class SvXMLGraphicImportExportHelper :
public impl::SvXMLGraphicImportExportHelper_Base
{
public:
- SvXMLGraphicImportExportHelper( SvXMLGraphicHelperMode eMode );
+ explicit SvXMLGraphicImportExportHelper( SvXMLGraphicHelperMode eMode );
protected:
// is called from WeakComponentImplHelper when XComponent::dispose() was
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index 7a582966b10e..aa9107a65a52 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -66,7 +66,7 @@ using com::sun::star::embed::XTransactedObject;
class SvxXMLTableEntryExporter
{
public:
- SvxXMLTableEntryExporter( SvXMLExport& rExport ) : mrExport( rExport ) {}
+ explicit SvxXMLTableEntryExporter( SvXMLExport& rExport ) : mrExport( rExport ) {}
virtual ~SvxXMLTableEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) = 0;
@@ -78,7 +78,7 @@ protected:
class SvxXMLColorEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLColorEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLColorEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLColorEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
@@ -87,7 +87,7 @@ public:
class SvxXMLLineEndEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLLineEndEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLLineEndEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLLineEndEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
@@ -98,7 +98,7 @@ private:
class SvxXMLDashEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLDashEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLDashEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLDashEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
@@ -110,7 +110,7 @@ private:
class SvxXMLHatchEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLHatchEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLHatchEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLHatchEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
@@ -121,7 +121,7 @@ private:
class SvxXMLGradientEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLGradientEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLGradientEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLGradientEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
@@ -132,7 +132,7 @@ private:
class SvxXMLBitmapEntryExporter : public SvxXMLTableEntryExporter
{
public:
- SvxXMLBitmapEntryExporter( SvXMLExport& rExport );
+ explicit SvxXMLBitmapEntryExporter( SvXMLExport& rExport );
virtual ~SvxXMLBitmapEntryExporter();
virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE;
diff --git a/svx/workben/msview/msview.cxx b/svx/workben/msview/msview.cxx
index b03b14b1d585..aff2e4e12394 100644
--- a/svx/workben/msview/msview.cxx
+++ b/svx/workben/msview/msview.cxx
@@ -503,13 +503,10 @@ public:
}
};
-
-
-
class AtomContainerTreeListBox : public SvTreeListBox
{
public:
- AtomContainerTreeListBox( vcl::Window* pParent );
+ explicit AtomContainerTreeListBox( vcl::Window* pParent );
~AtomContainerTreeListBox();
void SetRootAtom( const Atom* pAtom );
@@ -705,14 +702,12 @@ void AtomContainerTreeListBox::InsertAtom( const Atom* pAtom, SvTreeListEntry* p
}
}
-
-
extern void load_config( const OUString& rPath );
class PPTDocument
{
public:
- PPTDocument( const OUString& rFilePath );
+ explicit PPTDocument( const OUString& rFilePath );
~PPTDocument();
Atom* getRootAtom() const;
diff --git a/svx/workben/msview/xmlconfig.hxx b/svx/workben/msview/xmlconfig.hxx
index b9696023cf28..cf563f70fc64 100644
--- a/svx/workben/msview/xmlconfig.hxx
+++ b/svx/workben/msview/xmlconfig.hxx
@@ -33,8 +33,8 @@ class ElementConfig
public:
ElementConfig() : mnType( ECT_HEXDUMP ) {}
ElementConfig( const OUString& rName, ElementConfigType rType ) : maName( rName ), mnType( rType ) {}
- ElementConfig( const OUString& rName ) : maName( rName ) {}
- ElementConfig( ElementConfigType rType ) : mnType( rType ) {}
+ explicit ElementConfig( const OUString& rName ) : maName( rName ) {}
+ explicit ElementConfig( ElementConfigType rType ) : mnType( rType ) {}
virtual OUString format( SvStream& rStream, sal_Size& nLength ) const;
@@ -73,8 +73,8 @@ class ElementConfigContainer : public ElementConfig
public:
ElementConfigContainer() : ElementConfig( ETC_CONTAINER ) {}
ElementConfigContainer( const OUString& rName, ElementConfigType rType ) : ElementConfig( rName, rType ) {}
- ElementConfigContainer( const OUString& rName ) : ElementConfig( rName, ETC_CONTAINER ) {}
- ElementConfigContainer( ElementConfigType rType ) : ElementConfig( rType ) {}
+ explicit ElementConfigContainer( const OUString& rName ) : ElementConfig( rName, ETC_CONTAINER ) {}
+ explicit ElementConfigContainer( ElementConfigType rType ) : ElementConfig( rType ) {}
virtual OUString format( SvStream& rStream, sal_Size& nLength ) const;
@@ -89,7 +89,7 @@ protected:
class CaseElementConfig : public ElementConfigContainer
{
public:
- CaseElementConfig( const OUString& rValue ) : maValue( rValue ) {}
+ explicit CaseElementConfig( const OUString& rValue ) : maValue( rValue ) {}
const OUString& getValue() const { return maValue; }
@@ -97,18 +97,14 @@ private:
OUString maValue;
};
-
-
class SwitchElementConfig : public ElementConfigContainer
{
public:
- SwitchElementConfig( ElementConfigType rType ) : ElementConfigContainer( rType ) {}
+ explicit SwitchElementConfig( ElementConfigType rType ) : ElementConfigContainer( rType ) {}
virtual OUString format( SvStream& rStream, sal_Size& nLength ) const;
};
-
-
class AtomConfig : public ElementConfigContainer
{
public:
diff --git a/sw/qa/core/Test-BigPtrArray.cxx b/sw/qa/core/Test-BigPtrArray.cxx
index 54ae06c4ed0f..27b8a95ef70f 100644
--- a/sw/qa/core/Test-BigPtrArray.cxx
+++ b/sw/qa/core/Test-BigPtrArray.cxx
@@ -41,7 +41,7 @@ namespace /* private */
class BigPtrEntryMock : public BigPtrEntry
{
public:
- BigPtrEntryMock(sal_uLong count) : count_(count)
+ explicit BigPtrEntryMock(sal_uLong count) : count_(count)
{
}
@@ -611,7 +611,7 @@ class PerformanceTracer
public:
public:
- PerformanceTracer(const string& methodName) :
+ explicit PerformanceTracer(const string& methodName) :
startString_(START),
endString_(END)
{
diff --git a/sw/qa/core/test_ToxTextGenerator.cxx b/sw/qa/core/test_ToxTextGenerator.cxx
index 0dcda9f18717..18f16815d2e5 100644
--- a/sw/qa/core/test_ToxTextGenerator.cxx
+++ b/sw/qa/core/test_ToxTextGenerator.cxx
@@ -116,7 +116,7 @@ public:
class ToxTextGeneratorWithMockedChapterField : public ToxTextGenerator {
public:
- ToxTextGeneratorWithMockedChapterField(SwForm &form)
+ explicit ToxTextGeneratorWithMockedChapterField(SwForm &form)
: ToxTextGenerator(form, std::make_shared<MockedToxTabStopTokenHandler>()),
mChapterFieldType(), mChapterField(&mChapterFieldType) {;}
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx
index 446e430fa34b..14e1936dd5f2 100644
--- a/sw/qa/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/tiledrendering/tiledrendering.cxx
@@ -67,7 +67,7 @@ private:
VclPtr<FixedImage> mpImage;
public:
- TiledRenderingDialog(TiledRenderingApp * app) :
+ explicit TiledRenderingDialog(TiledRenderingApp * app) :
ModalDialog(nullptr, "TiledRendering", "qa/sw/ui/tiledrendering.ui", Dialog::InitFlag::NoParent),
mpApp(app)
{
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 7e47ad3c6dd5..0428b3fc1fa5 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -127,7 +127,7 @@ protected:
virtual ~SwDrawModellListener_Impl();
public:
- SwDrawModellListener_Impl( SdrModel *pDrawModel );
+ explicit SwDrawModellListener_Impl( SdrModel *pDrawModel );
virtual void SAL_CALL addEventListener( const uno::Reference< document::XEventListener >& xListener ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL removeEventListener( const uno::Reference< document::XEventListener >& xListener ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -232,7 +232,7 @@ public:
#if OSL_DEBUG_LEVEL > 0
bool mbLocked;
#endif
- SwAccessibleShapeMap_Impl( SwAccessibleMap *pMap )
+ explicit SwAccessibleShapeMap_Impl( SwAccessibleMap *pMap )
: maMap()
#if OSL_DEBUG_LEVEL > 0
, mbLocked( false )
@@ -375,7 +375,7 @@ public:
"wrong event constructor, DISPOSE only");
}
- SwAccessibleEvent_Impl( EventType eT )
+ explicit SwAccessibleEvent_Impl( EventType eT )
: meType( eT ),
mnStates( AccessibleStates::NONE ),
mpParentFrm( nullptr )
@@ -770,7 +770,7 @@ void SwAccPreviewData::InvalidateSelection( const SwPageFrm* _pSelectedPageFrm )
struct ContainsPredicate
{
const Point& mrPoint;
- ContainsPredicate( const Point& rPoint ) : mrPoint(rPoint) {}
+ explicit ContainsPredicate( const Point& rPoint ) : mrPoint(rPoint) {}
bool operator() ( const Rectangle& rRect ) const
{
return rRect.IsInside( mrPoint );
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index efda51713d7c..c6b433e33e2f 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -1421,7 +1421,7 @@ com::sun::star::uno::Sequence< ::com::sun::star::style::TabStop > SwAccessiblePa
struct IndexCompare
{
const PropertyValue* pValues;
- IndexCompare( const PropertyValue* pVals ) : pValues(pVals) {}
+ explicit IndexCompare( const PropertyValue* pVals ) : pValues(pVals) {}
bool operator() ( const sal_Int32& a, const sal_Int32& b ) const
{
return (pValues[a].Name < pValues[b].Name);
@@ -3088,7 +3088,7 @@ class SwHyperlinkIter_Impl
size_t nPos;
public:
- SwHyperlinkIter_Impl( const SwTextFrm *pTextFrm );
+ explicit SwHyperlinkIter_Impl( const SwTextFrm *pTextFrm );
const SwTextAttr *next();
size_t getCurrHintPos() const { return nPos-1; }
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index 0deb99b4b10e..5a9458271d63 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -605,7 +605,11 @@ class SwAccAllTableSelHander_Impl : public SwAccTableSelHander_Impl
sal_Int32 nCount;
public:
- inline SwAccAllTableSelHander_Impl( sal_Int32 nSize );
+ explicit SwAccAllTableSelHander_Impl(sal_Int32 nSize)
+ : aSelected(nSize, true)
+ , nCount(nSize)
+ {
+ }
uno::Sequence < sal_Int32 > GetSelSequence();
@@ -617,12 +621,6 @@ SwAccAllTableSelHander_Impl::~SwAccAllTableSelHander_Impl()
{
}
-inline SwAccAllTableSelHander_Impl::SwAccAllTableSelHander_Impl( sal_Int32 nSize ) :
- aSelected( nSize, true ),
- nCount( nSize )
-{
-}
-
uno::Sequence < sal_Int32 > SwAccAllTableSelHander_Impl::GetSelSequence()
{
OSL_ENSURE( nCount >= 0, "underflow" );
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 46d3e7ca724b..de3193ec3092 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -1372,7 +1372,7 @@ class SwNotifyAccAboutInvalidTextSelections
SwCrsrShell& mrCrsrSh;
public:
- SwNotifyAccAboutInvalidTextSelections( SwCrsrShell& _rCrsrSh )
+ explicit SwNotifyAccAboutInvalidTextSelections( SwCrsrShell& _rCrsrSh )
: mrCrsrSh( _rCrsrSh )
{}
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 9baa90101297..8b8358e1fc7d 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -73,7 +73,7 @@ struct _PercentHdl
::StartProgress( STR_STATSTR_SEARCH, nStt, nEnd, 0 );
}
- _PercentHdl( const SwPaM& rPam )
+ explicit _PercentHdl( const SwPaM& rPam )
: pDSh( rPam.GetDoc()->GetDocShell() )
{
sal_uLong nStt, nEnd;
diff --git a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
index 2e2db8c74f6f..64b62b66265b 100644
--- a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+++ b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
@@ -56,7 +56,7 @@ namespace
SwTableNode* pTableNd;
SwSectionNode* pSectNd;
- _FindItem(const OUString& rS)
+ explicit _FindItem(const OUString& rS)
: m_Item(rS), pTableNd(0), pSectNd(0)
{}
};
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index c00f1c94fe06..acfcb57c8e94 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -69,7 +69,7 @@ class SwAutoCompleteWord_Impl
SwAutoCompleteClientVector aClientVector;
SwAutoCompleteWord& rAutoCompleteWord;
public:
- SwAutoCompleteWord_Impl(SwAutoCompleteWord& rParent) :
+ explicit SwAutoCompleteWord_Impl(SwAutoCompleteWord& rParent) :
rAutoCompleteWord(rParent){}
void AddDocument(SwDoc& rDoc);
void RemoveDocument(const SwDoc& rDoc);
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index df1886680394..fc01911fd83e 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -178,7 +178,7 @@ class Hash
sal_uLong nCount, nPrime;
public:
- Hash( sal_uLong nSize );
+ explicit Hash( sal_uLong nSize );
~Hash();
void CalcHashValue( CompareData& rData );
@@ -344,7 +344,7 @@ private:
int nStt2, int nEnd2 );
public:
- LgstCommonSubseq( ArrayComparator &rComparator );
+ explicit LgstCommonSubseq( ArrayComparator &rComparator );
~LgstCommonSubseq();
int Find( int *pSubseq1, int *pSubseq2 );
@@ -360,7 +360,7 @@ private:
int nStt2, int nEnd2 );
public:
- FastCommonSubseq( ArrayComparator &rComparator )
+ explicit FastCommonSubseq( ArrayComparator &rComparator )
: CommonSubseq( rComparator, CUTOFF )
{
}
@@ -993,7 +993,7 @@ class SwCompareLine : public CompareLine
{
const SwNode& rNode;
public:
- SwCompareLine( const SwNode& rNd );
+ explicit SwCompareLine( const SwNode& rNd );
virtual ~SwCompareLine();
virtual sal_uLong GetHashValue() const SAL_OVERRIDE;
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index e24c4fa32279..6a00e2ee4cff 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -809,7 +809,7 @@ IMPL_LINK_NOARG_TYPED( SwDoc, DoUpdateModifiedOLE, Idle *, void )
}
struct CompareSwPageDescName {
- CompareSwPageDescName(const OUString &rName) : mName(rName) {}
+ explicit CompareSwPageDescName(const OUString &rName) : mName(rName) {}
bool operator () (const SwPageDesc& other) const { return other.GetName() == mName; }
const OUString &mName;
};
@@ -846,7 +846,7 @@ SwPageDesc* SwDoc::FindPageDesc( const OUString & rName, size_t* pPos ) const
}
struct CompareSwPageDescToPtr {
- CompareSwPageDescToPtr(const SwPageDesc* ptr) : mPtr(ptr) {}
+ explicit CompareSwPageDescToPtr(const SwPageDesc* ptr) : mPtr(ptr) {}
bool operator () (const SwPageDesc& other) const { return &other == mPtr; }
const SwPageDesc *mPtr;
};
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 08db77b6c113..052df8f41511 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -87,7 +87,7 @@ struct _CpyTabFrm
} Value;
SwTableBoxFormat *pNewFrameFormat;
- _CpyTabFrm( SwTableBoxFormat* pAktFrameFormat ) : pNewFrameFormat( 0 )
+ explicit _CpyTabFrm( SwTableBoxFormat* pAktFrameFormat ) : pNewFrameFormat( 0 )
{ Value.pFrameFormat = pAktFrameFormat; }
_CpyTabFrm& operator=( const _CpyTabFrm& );
diff --git a/sw/source/core/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx
index bb7e97ff83df..6390ad7a843a 100644
--- a/sw/source/core/docnode/finalthreadmanager.cxx
+++ b/sw/source/core/docnode/finalthreadmanager.cxx
@@ -36,7 +36,7 @@
class CancelJobsThread : public osl::Thread
{
public:
- CancelJobsThread( std::list< css::uno::Reference< css::util::XCancellable > > aJobs )
+ explicit CancelJobsThread( std::list< css::uno::Reference< css::util::XCancellable > > aJobs )
: osl::Thread(),
maMutex(),
maJobs( aJobs ),
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 7a77906d430d..edb67589574b 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -3645,7 +3645,7 @@ struct _SetAFormatTabPara
sal_uInt16 nEndBox, nCurBox;
sal_uInt8 nAFormatLine, nAFormatBox;
- _SetAFormatTabPara( const SwTableAutoFormat& rNew )
+ explicit _SetAFormatTabPara( const SwTableAutoFormat& rNew )
: rTableFormat( (SwTableAutoFormat&)rNew ), pUndo( 0 ),
nEndBox( 0 ), nCurBox( 0 ), nAFormatLine( 0 ), nAFormatBox( 0 )
{}
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 30e33ae5cd83..83b58b4d26be 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -1410,8 +1410,7 @@ void SwNodes::DelNodes( const SwNodeIndex & rStart, sal_uLong nCnt )
struct HighLevel
{
sal_uInt16 nLevel, nTop;
- HighLevel( sal_uInt16 nLv ) : nLevel( nLv ), nTop( nLv ) {}
-
+ explicit HighLevel( sal_uInt16 nLv ) : nLevel( nLv ), nTop( nLv ) {}
};
static bool lcl_HighestLevel( const SwNodePtr& rpNode, void * pPara )
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index 08e628b70b20..f25c278b9b37 100644
--- a/sw/source/core/draw/dcontact.cxx
+++ b/sw/source/core/draw/dcontact.cxx
@@ -2026,7 +2026,7 @@ namespace sdr
public:
/// basic constructor, used from SdrObject.
- VCOfDrawVirtObj(SwDrawVirtObj& rObj)
+ explicit VCOfDrawVirtObj(SwDrawVirtObj& rObj)
: ViewContactOfVirtObj(rObj)
{
}
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index cc81412e463b..efd249ff071d 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -90,7 +90,7 @@ namespace sdr
public:
/// basic constructor, used from SdrObject.
- VCOfSwFlyDrawObj(SwFlyDrawObj& rObj)
+ explicit VCOfSwFlyDrawObj(SwFlyDrawObj& rObj)
: ViewContactOfSdrObj(rObj)
{
}
@@ -269,7 +269,7 @@ namespace sdr
public:
/// basic constructor, used from SdrObject.
- VCOfSwVirtFlyDrawObj(SwVirtFlyDrawObj& rObj)
+ explicit VCOfSwVirtFlyDrawObj(SwVirtFlyDrawObj& rObj)
: ViewContactOfVirtObj(rObj)
{
}
diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx
index 0371f88528d3..30e3d5780ee8 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -143,9 +143,10 @@ class SwConvIter : public SwLinguIter
{
SwConversionArgs &rArgs;
public:
- SwConvIter( SwConversionArgs &rConvArgs ) :
- rArgs( rConvArgs )
- {}
+ explicit SwConvIter(SwConversionArgs &rConvArgs)
+ : rArgs(rConvArgs)
+ {
+ }
void Start( SwEditShell *pSh, SwDocPositions eStart, SwDocPositions eEnd );
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index c845ed0f2d5e..f8f8ad5998e0 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -934,7 +934,7 @@ private:
static sal_uInt16 GetFirstUnusedId( std::set<sal_uInt16> &rIds );
public:
- _RefIdsMap( const OUString& rName ) : aName( rName ), bInit( false ) {}
+ explicit _RefIdsMap( const OUString& rName ) : aName( rName ), bInit( false ) {}
void Check( SwDoc& rDoc, SwDoc& rDestDoc, SwGetRefField& rField, bool bField );
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index fe38a2244993..ec5275813a2f 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1243,7 +1243,7 @@ namespace
class MarkableObjectsOnly : public svx::ISdrObjectFilter
{
public:
- MarkableObjectsOnly( SdrPageView* i_pPV )
+ explicit MarkableObjectsOnly( SdrPageView* i_pPV )
:m_pPV( i_pPV )
{
}
diff --git a/sw/source/core/frmedt/tblsel.cxx b/sw/source/core/frmedt/tblsel.cxx
index 17f98776c158..a5d3e8a952ce 100644
--- a/sw/source/core/frmedt/tblsel.cxx
+++ b/sw/source/core/frmedt/tblsel.cxx
@@ -91,7 +91,7 @@ struct _Sort_CellFrm
{
const SwCellFrm* pFrm;
- _Sort_CellFrm( const SwCellFrm& rCFrm )
+ explicit _Sort_CellFrm( const SwCellFrm& rCFrm )
: pFrm( &rCFrm ) {}
};
diff --git a/sw/source/core/layout/anchoreddrawobject.cxx b/sw/source/core/layout/anchoreddrawobject.cxx
index 1de341212b8d..a5141df9fb16 100644
--- a/sw/source/core/layout/anchoreddrawobject.cxx
+++ b/sw/source/core/layout/anchoreddrawobject.cxx
@@ -44,7 +44,7 @@ class SwPosNotify
SwPageFrm* mpOldPageFrm;
public:
- SwPosNotify( SwAnchoredDrawObject* _pAnchoredDrawObj );
+ explicit SwPosNotify( SwAnchoredDrawObject* _pAnchoredDrawObj );
~SwPosNotify();
// #i32795#
Point LastObjPos() const;
@@ -133,7 +133,7 @@ class SwObjPosOscillationControl
std::vector<Point*> maObjPositions;
public:
- SwObjPosOscillationControl( const SwAnchoredDrawObject& _rAnchoredDrawObj );
+ explicit SwObjPosOscillationControl( const SwAnchoredDrawObject& _rAnchoredDrawObj );
~SwObjPosOscillationControl();
bool OscillationDetected();
diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx
index fde2e2d91843..65cf9b9b5655 100644
--- a/sw/source/core/layout/flycnt.cxx
+++ b/sw/source/core/layout/flycnt.cxx
@@ -206,7 +206,7 @@ class SwOszControl
std::vector<Point*> maObjPositions;
public:
- SwOszControl( const SwFlyFrm *pFrm );
+ explicit SwOszControl( const SwFlyFrm *pFrm );
~SwOszControl();
bool ChkOsz();
static bool IsInProgress( const SwFlyFrm *pFly );
diff --git a/sw/source/core/layout/layouter.cxx b/sw/source/core/layout/layouter.cxx
index 54f95feba332..b710bf8b7ad8 100644
--- a/sw/source/core/layout/layouter.cxx
+++ b/sw/source/core/layout/layouter.cxx
@@ -37,7 +37,7 @@ class SwLooping
sal_uInt16 nCount;
sal_uInt16 mnLoopControlStage;
public:
- SwLooping( SwPageFrm* pPage );
+ explicit SwLooping( SwPageFrm* pPage );
void Control( SwPageFrm* pPage );
void Drastic( SwFrm* pFrm );
bool IsLoopingLouieLight() const { return nCount > LOOP_DETECT - 30; };
@@ -49,7 +49,7 @@ class SwEndnoter
SwSectionFrm* pSect;
SwFootnoteFrms* pEndArr;
public:
- SwEndnoter( SwLayouter* pLay )
+ explicit SwEndnoter( SwLayouter* pLay )
: pMaster( pLay ), pSect( NULL ), pEndArr( NULL ) {}
~SwEndnoter() { delete pEndArr; }
void CollectEndnotes( SwSectionFrm* pSct );
diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx
index dc6eee0863c4..3880fa3fc519 100644
--- a/sw/source/core/layout/objectformattertxtfrm.cxx
+++ b/sw/source/core/layout/objectformattertxtfrm.cxx
@@ -39,7 +39,7 @@ private:
const bool bOldFollowFormatAllowed;
public:
- SwForbidFollowFormat( SwTextFrm& _rTextFrm )
+ explicit SwForbidFollowFormat( SwTextFrm& _rTextFrm )
: mrTextFrm( _rTextFrm ),
bOldFollowFormatAllowed( _rTextFrm.FollowFormatAllowed() )
{
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 4c0c2b45946c..36ba34545917 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2518,7 +2518,7 @@ class SwTabFrmPainter
void AdjustTopLeftFrames();
public:
- SwTabFrmPainter( const SwTabFrm& rTabFrm );
+ explicit SwTabFrmPainter( const SwTabFrm& rTabFrm );
void PaintLines( OutputDevice& rDev, const SwRect& rRect ) const;
};
@@ -3131,7 +3131,7 @@ namespace
const SwViewShell& mrViewShell;
public:
- SwViewObjectContactRedirector( const SwViewShell& rSh )
+ explicit SwViewObjectContactRedirector( const SwViewShell& rSh )
: mrViewShell( rSh )
{};
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index aa2ba0e663ec..e9cc07bd9833 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -1083,7 +1083,7 @@ class ExtraFormatToPositionObjs
bool mbExtraFormatPerformed;
public:
- ExtraFormatToPositionObjs( SwSectionFrm& _rSectFrm)
+ explicit ExtraFormatToPositionObjs( SwSectionFrm& _rSectFrm)
: mpSectFrm( &_rSectFrm ),
mbExtraFormatPerformed( false )
{}
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 578192f54ec1..999afd119abb 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -1468,7 +1468,7 @@ class DisableCallbackAction
bool mbOldCallbackActionState;
public:
- DisableCallbackAction( const SwRootFrm& _rRootFrm ) :
+ explicit DisableCallbackAction( const SwRootFrm& _rRootFrm ) :
mrRootFrm( const_cast<SwRootFrm&>(_rRootFrm) ),
mbOldCallbackActionState( _rRootFrm.IsCallbackActionEnabled() )
{
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index ddedf7716b32..6096a125a1de 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -90,7 +90,7 @@ class SwOLEListener_Impl : public ::cppu::WeakImplHelper< embed::XStateChangeLis
{
SwOLEObj* mpObj;
public:
- SwOLEListener_Impl( SwOLEObj* pObj );
+ explicit SwOLEListener_Impl( SwOLEObj* pObj );
void Release();
virtual void SAL_CALL changingState( const lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (embed::WrongStateException, uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL stateChanged( const lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -147,7 +147,7 @@ class SwEmbedObjectLink : public sfx2::SvBaseLink
SwOLENode* pOleNode;
public:
- SwEmbedObjectLink(SwOLENode* pNode);
+ explicit SwEmbedObjectLink(SwOLENode* pNode);
virtual ~SwEmbedObjectLink();
virtual void Closed() SAL_OVERRIDE;
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index a1a30cbd46af..150ef16fd619 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -132,7 +132,7 @@ protected:
public:
void CtorInitTextInfo( SwTextFrm *pFrm );
SwTextInfo( const SwTextInfo &rInf );
- SwTextInfo( SwTextFrm *pFrm ) { CtorInitTextInfo( pFrm ); }
+ explicit SwTextInfo( SwTextFrm *pFrm ) { CtorInitTextInfo( pFrm ); }
SwParaPortion *GetParaPortion() { return m_pPara; }
const SwParaPortion *GetParaPortion() const { return m_pPara; }
sal_Int32 GetTextStart() const { return m_nTextStart; }
diff --git a/sw/source/core/text/itratr.hxx b/sw/source/core/text/itratr.hxx
index 6f19241b3dbc..a8cc2e89a4b3 100644
--- a/sw/source/core/text/itratr.hxx
+++ b/sw/source/core/text/itratr.hxx
@@ -65,7 +65,7 @@ protected:
void Chg( SwTextAttr *pHt );
void Rst( SwTextAttr *pHt );
void CtorInitAttrIter( SwTextNode& rTextNode, SwScriptInfo& rScrInf, SwTextFrm* pFrm = 0 );
- SwAttrIter(SwTextNode* pTextNode)
+ explicit SwAttrIter(SwTextNode* pTextNode)
: pShell(0)
, pFnt(0)
, pHints(0)
diff --git a/sw/source/core/text/itrpaint.hxx b/sw/source/core/text/itrpaint.hxx
index 20fb2df23259..8ab7bd23fee1 100644
--- a/sw/source/core/text/itrpaint.hxx
+++ b/sw/source/core/text/itrpaint.hxx
@@ -32,7 +32,7 @@ class SwTextPainter : public SwTextCursor
long nAdjustBaseLine = 0 );
protected:
void CtorInitTextPainter( SwTextFrm *pFrm, SwTextPaintInfo *pInf );
- SwTextPainter(SwTextNode* pTextNode)
+ explicit SwTextPainter(SwTextNode* pTextNode)
: SwTextCursor(pTextNode)
, bPaintDrop(false)
{
diff --git a/sw/source/core/text/itrtxt.hxx b/sw/source/core/text/itrtxt.hxx
index 95f821d98c9a..fdaec18f7907 100644
--- a/sw/source/core/text/itrtxt.hxx
+++ b/sw/source/core/text/itrtxt.hxx
@@ -53,7 +53,7 @@ protected:
// Reset in the first line
void Init();
void CtorInitTextIter( SwTextFrm *pFrm, SwTextInfo *pInf );
- SwTextIter(SwTextNode* pTextNode)
+ explicit SwTextIter(SwTextNode* pTextNode)
: SwAttrIter(pTextNode)
, pFrm(NULL)
, pInf(NULL)
@@ -160,7 +160,7 @@ protected:
inline void SetDropLeft( const sal_uInt16 nNew ) { nDropLeft = nNew; }
void CtorInitTextMargin( SwTextFrm *pFrm, SwTextSizeInfo *pInf );
- SwTextMargin(SwTextNode* pTextNode)
+ explicit SwTextMargin(SwTextNode* pTextNode)
: SwTextIter(pTextNode)
, nLeft(0)
, nRight(0)
@@ -239,7 +239,7 @@ class SwTextAdjuster : public SwTextMargin
const SwRect &rCurrRect );
protected:
- inline SwTextAdjuster(SwTextNode* pTextNode) : SwTextMargin(pTextNode) { }
+ explicit SwTextAdjuster(SwTextNode* pTextNode) : SwTextMargin(pTextNode) { }
// Creates the Glues for adjusted paragraphs
void CalcNewBlock( SwLineLayout *pCurr, const SwLinePortion *pStopAt,
SwTwips nReal = 0, bool bSkipKashida = false );
@@ -274,7 +274,7 @@ class SwTextCursor : public SwTextAdjuster
void _GetCharRect(SwRect *, const sal_Int32, SwCrsrMoveState* );
protected:
void CtorInitTextCursor( SwTextFrm *pFrm, SwTextSizeInfo *pInf );
- SwTextCursor(SwTextNode* pTextNode) : SwTextAdjuster(pTextNode) { }
+ explicit SwTextCursor(SwTextNode* pTextNode) : SwTextAdjuster(pTextNode) { }
public:
SwTextCursor( SwTextFrm *pTextFrm, SwTextSizeInfo *pTextSizeInf )
: SwTextAdjuster(pTextFrm->GetTextNode())
@@ -308,7 +308,7 @@ class SwHookOut
VclPtr<OutputDevice> pOut;
bool bOnWin;
public:
- SwHookOut( SwTextSizeInfo& rInfo );
+ explicit SwHookOut( SwTextSizeInfo& rInfo );
~SwHookOut();
};
diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx
index cf2374aed66f..365364f503d1 100644
--- a/sw/source/core/text/porexp.hxx
+++ b/sw/source/core/text/porexp.hxx
@@ -68,7 +68,7 @@ class SwPostItsPortion : public SwExpandPortion
{
bool bScript;
public:
- SwPostItsPortion( bool bScrpt );
+ explicit SwPostItsPortion( bool bScrpt );
virtual void Paint( const SwTextPaintInfo &rInf ) const SAL_OVERRIDE;
virtual bool Format( SwTextFormatInfo &rInf ) SAL_OVERRIDE;
virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const SAL_OVERRIDE;
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx
index fe96aa42cfbe..1e0d5d74f3ef 100644
--- a/sw/source/core/text/porfld.hxx
+++ b/sw/source/core/text/porfld.hxx
@@ -220,7 +220,7 @@ class SwCombinedPortion : public SwFieldPortion
sal_uInt16 nLowPos; // the Y position of the lower baseline
sal_uInt8 nProportion; // relative font height
public:
- SwCombinedPortion( const OUString &rExpand );
+ explicit SwCombinedPortion( const OUString &rExpand );
virtual void Paint( const SwTextPaintInfo &rInf ) const SAL_OVERRIDE;
virtual bool Format( SwTextFormatInfo &rInf ) SAL_OVERRIDE;
virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const SAL_OVERRIDE;
@@ -234,7 +234,7 @@ namespace sw { namespace mark {
class SwFieldFormDropDownPortion : public SwFieldPortion
{
public:
- SwFieldFormDropDownPortion(const OUString &rExpand)
+ explicit SwFieldFormDropDownPortion(const OUString &rExpand)
: SwFieldPortion(rExpand)
{
}
diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx
index ff31005315dd..9b9aef0373bc 100644
--- a/sw/source/core/text/porfly.hxx
+++ b/sw/source/core/text/porfly.hxx
@@ -32,7 +32,7 @@ class SwFlyPortion : public SwFixPortion
{
sal_uInt16 nBlankWidth;
public:
- inline SwFlyPortion( const SwRect &rFlyRect )
+ explicit SwFlyPortion( const SwRect &rFlyRect )
: SwFixPortion(rFlyRect), nBlankWidth( 0 ) { SetWhichPor( POR_FLY ); }
inline sal_uInt16 GetBlankWidth( ) const { return nBlankWidth; }
inline void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; }
diff --git a/sw/source/core/text/porglue.hxx b/sw/source/core/text/porglue.hxx
index 058d95137cc2..182faab066b8 100644
--- a/sw/source/core/text/porglue.hxx
+++ b/sw/source/core/text/porglue.hxx
@@ -29,7 +29,7 @@ class SwGluePortion : public SwLinePortion
private:
sal_uInt16 nFixWidth;
public:
- SwGluePortion( const sal_uInt16 nInitFixWidth );
+ explicit SwGluePortion( const sal_uInt16 nInitFixWidth );
void Join( SwGluePortion *pVictim );
@@ -52,8 +52,8 @@ class SwFixPortion : public SwGluePortion
{
sal_uInt16 nFix; // The width offset in the line
public:
- SwFixPortion( const SwRect &rFlyRect );
- SwFixPortion( const sal_uInt16 nFixWidth, const sal_uInt16 nFixPos );
+ explicit SwFixPortion( const SwRect &rFlyRect );
+ SwFixPortion( const sal_uInt16 nFixWidth, const sal_uInt16 nFixPos );
inline void Fix( const sal_uInt16 nNewFix ) { nFix = nNewFix; }
inline sal_uInt16 Fix() const { return nFix; }
OUTPUT_OPERATOR_OVERRIDE
@@ -62,8 +62,8 @@ public:
class SwMarginPortion : public SwGluePortion
{
public:
- SwMarginPortion( const sal_uInt16 nFixWidth );
- void AdjustRight( const SwLineLayout* pCurr );
+ explicit SwMarginPortion( const sal_uInt16 nFixWidth );
+ void AdjustRight( const SwLineLayout* pCurr );
OUTPUT_OPERATOR_OVERRIDE
};
diff --git a/sw/source/core/text/porhyph.hxx b/sw/source/core/text/porhyph.hxx
index 5d4edb75c6f2..90af3bf74632 100644
--- a/sw/source/core/text/porhyph.hxx
+++ b/sw/source/core/text/porhyph.hxx
@@ -41,7 +41,7 @@ class SwHyphStrPortion : public SwHyphPortion
{
OUString aExpand;
public:
- SwHyphStrPortion(const OUString &rStr)
+ explicit SwHyphStrPortion(const OUString &rStr)
: aExpand(rStr + "-")
{
SetWhichPor( POR_HYPHSTR );
@@ -82,7 +82,7 @@ public:
class SwSoftHyphStrPortion : public SwHyphStrPortion
{
public:
- SwSoftHyphStrPortion( const OUString &rStr );
+ explicit SwSoftHyphStrPortion( const OUString &rStr );
virtual void Paint( const SwTextPaintInfo &rInf ) const SAL_OVERRIDE;
OUTPUT_OPERATOR_OVERRIDE
};
diff --git a/sw/source/core/text/portxt.hxx b/sw/source/core/text/portxt.hxx
index 660d38d72209..644915f3cd3f 100644
--- a/sw/source/core/text/portxt.hxx
+++ b/sw/source/core/text/portxt.hxx
@@ -76,9 +76,9 @@ class SwHolePortion : public SwLinePortion
{
sal_uInt16 nBlankWidth;
public:
- SwHolePortion( const SwTextPortion &rPor );
- inline sal_uInt16 GetBlankWidth( ) const { return nBlankWidth; }
- inline void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; }
+ explicit SwHolePortion( const SwTextPortion &rPor );
+ sal_uInt16 GetBlankWidth( ) const { return nBlankWidth; }
+ void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; }
virtual SwLinePortion *Compress() SAL_OVERRIDE;
virtual bool Format( SwTextFormatInfo &rInf ) SAL_OVERRIDE;
virtual void Paint( const SwTextPaintInfo &rInf ) const SAL_OVERRIDE;
diff --git a/sw/source/core/text/txtcache.hxx b/sw/source/core/text/txtcache.hxx
index 286427503cca..593ec7312c53 100644
--- a/sw/source/core/text/txtcache.hxx
+++ b/sw/source/core/text/txtcache.hxx
@@ -49,7 +49,7 @@ protected:
virtual SwCacheObj *NewObj() SAL_OVERRIDE;
public:
- SwTextLineAccess( const SwTextFrm *pOwner );
+ explicit SwTextLineAccess( const SwTextFrm *pOwner );
SwParaPortion *GetPara();
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx
index 296b487845a6..5fa21bf5f45b 100644
--- a/sw/source/core/text/txtdrop.cxx
+++ b/sw/source/core/text/txtdrop.cxx
@@ -72,7 +72,7 @@ class SwDropSave
long nY;
public:
- SwDropSave( const SwTextPaintInfo &rInf );
+ explicit SwDropSave( const SwTextPaintInfo &rInf );
~SwDropSave();
};
diff --git a/sw/source/core/text/txtpaint.hxx b/sw/source/core/text/txtpaint.hxx
index ce4357fdeb03..bb51338aedb5 100644
--- a/sw/source/core/text/txtpaint.hxx
+++ b/sw/source/core/text/txtpaint.hxx
@@ -33,7 +33,13 @@ protected:
void _ChgClip( const SwRect &rRect, const SwTextFrm* pFrm,
bool bEnlargeRect );
public:
- inline SwSaveClip( OutputDevice* pOut );
+ explicit SwSaveClip(OutputDevice* pOutDev)
+ : bOn(pOutDev && pOutDev->IsClipRegion())
+ , bChg(false)
+ , pOut(pOutDev)
+ {
+ }
+
inline ~SwSaveClip();
inline void ChgClip( const SwRect &rRect, const SwTextFrm* pFrm = 0,
bool bEnlargeRect = false)
@@ -44,12 +50,6 @@ public:
inline OutputDevice *GetOut() { return pOut; }
};
-inline SwSaveClip::SwSaveClip( OutputDevice* pOutDev ) :
- bOn( pOutDev && pOutDev->IsClipRegion() ),
- bChg( false ),
- pOut(pOutDev)
-{}
-
inline SwSaveClip::~SwSaveClip()
{
Reset();
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 951b415ff565..bc5bd853a538 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -101,7 +101,7 @@ class XmlPortionDumper:public SwPortionHandler
public:
- XmlPortionDumper( xmlTextWriterPtr some_writer ):writer( some_writer ), ofs( 0 )
+ explicit XmlPortionDumper( xmlTextWriterPtr some_writer ):writer( some_writer ), ofs( 0 )
{
}
diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx
index 5087242b9ff2..165eb37c886e 100644
--- a/sw/source/core/txtnode/fntcap.cxx
+++ b/sw/source/core/txtnode/fntcap.cxx
@@ -94,7 +94,7 @@ protected:
SwDrawTextInfo &rInf;
SwCapitalInfo* pCapInf; // referes to additional information
// required by the ::Do function
- SwDoCapitals ( SwDrawTextInfo &rInfo ) : rInf( rInfo ), pCapInf( 0 ) { }
+ explicit SwDoCapitals ( SwDrawTextInfo &rInfo ) : rInf( rInfo ), pCapInf( 0 ) { }
~SwDoCapitals() {}
public:
virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) = 0;
@@ -110,7 +110,7 @@ class SwDoGetCapitalSize : public SwDoCapitals
protected:
Size aTextSize;
public:
- SwDoGetCapitalSize( SwDrawTextInfo &rInfo ) : SwDoCapitals ( rInfo ) { }
+ explicit SwDoGetCapitalSize( SwDrawTextInfo &rInfo ) : SwDoCapitals ( rInfo ) { }
virtual ~SwDoGetCapitalSize() {}
virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) SAL_OVERRIDE;
virtual void Do() SAL_OVERRIDE;
@@ -236,7 +236,7 @@ protected:
SwFntObj *pUpperFnt;
SwFntObj *pLowerFnt;
public:
- SwDoDrawCapital( SwDrawTextInfo &rInfo ) :
+ explicit SwDoDrawCapital( SwDrawTextInfo &rInfo ) :
SwDoCapitals( rInfo ), pUpperFnt(0), pLowerFnt(0)
{ }
virtual ~SwDoDrawCapital() {}
diff --git a/sw/source/core/txtnode/modeltoviewhelper.cxx b/sw/source/core/txtnode/modeltoviewhelper.cxx
index b125f0507827..7a8e4fe52581 100644
--- a/sw/source/core/txtnode/modeltoviewhelper.cxx
+++ b/sw/source/core/txtnode/modeltoviewhelper.cxx
@@ -70,7 +70,7 @@ struct block
struct containsPos
{
const sal_Int32 m_nPos;
- containsPos(const sal_Int32 nPos)
+ explicit containsPos(const sal_Int32 nPos)
: m_nPos(nPos)
{
}
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index a56d67582aa0..4956a35f51f3 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -4678,7 +4678,7 @@ namespace {
const sal_uInt16 nWhich2 );
HandleResetAttrAtTextNode( SwTextNode& rTextNode,
const std::vector<sal_uInt16>& rWhichArr );
- HandleResetAttrAtTextNode( SwTextNode& rTextNode );
+ explicit HandleResetAttrAtTextNode( SwTextNode& rTextNode );
~HandleResetAttrAtTextNode();
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 452ae53001e9..40b71a1a911c 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -99,7 +99,7 @@ SwpHints::SwpHints()
struct TextAttrDeleter
{
SwAttrPool & m_rPool;
- TextAttrDeleter( SwDoc & rDoc ) : m_rPool( rDoc.GetAttrPool() ) { }
+ explicit TextAttrDeleter( SwDoc & rDoc ) : m_rPool( rDoc.GetAttrPool() ) { }
void operator() (SwTextAttr * const pAttr)
{
if (RES_TXTATR_META == pAttr->Which() ||
@@ -114,7 +114,7 @@ struct TextAttrDeleter
struct TextAttrContains
{
sal_Int32 m_nPos;
- TextAttrContains( const sal_Int32 nPos ) : m_nPos( nPos ) { }
+ explicit TextAttrContains( const sal_Int32 nPos ) : m_nPos( nPos ) { }
bool operator() (SwTextAttrEnd * const pAttr)
{
return (pAttr->GetStart() < m_nPos) && (m_nPos < *pAttr->End());
@@ -2306,7 +2306,7 @@ struct IsAutoStyle
*/
struct RemovePresentAttrs
{
- RemovePresentAttrs(SfxItemSet& io_rAttrSet)
+ explicit RemovePresentAttrs(SfxItemSet& io_rAttrSet)
: m_rAttrSet(io_rAttrSet)
{
}
@@ -2405,7 +2405,7 @@ lcl_FillWhichIds(const SfxItemSet& i_rAttrSet, std::vector<sal_uInt16>& o_rClear
struct SfxItemSetClearer
{
SfxItemSet & m_rItemSet;
- SfxItemSetClearer(SfxItemSet & rItemSet) : m_rItemSet(rItemSet) { }
+ explicit SfxItemSetClearer(SfxItemSet & rItemSet) : m_rItemSet(rItemSet) { }
void operator()(sal_uInt16 const nWhich) { m_rItemSet.ClearItem(nWhich); }
};
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 9acedfe8bb57..21281a4fe268 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -82,7 +82,7 @@ typedef std::vector<std::shared_ptr<SfxItemSet> > SfxItemSets;
class SwUndoSaveSections : public boost::ptr_vector<SwUndoSaveSection> {
public:
- SwUndoSaveSections(size_type n) : boost::ptr_vector<SwUndoSaveSection>(n) {}
+ explicit SwUndoSaveSections(size_type n) : boost::ptr_vector<SwUndoSaveSection>(n) {}
};
class SwUndoMoves : public boost::ptr_vector<SwUndoMove> {};
@@ -90,7 +90,7 @@ class SwUndoMoves : public boost::ptr_vector<SwUndoMove> {};
struct SwTableToTextSave;
class SwTableToTextSaves : public boost::ptr_vector<SwTableToTextSave> {
public:
- SwTableToTextSaves(size_type n) : boost::ptr_vector<SwTableToTextSave>(n) {}
+ explicit SwTableToTextSaves(size_type n) : boost::ptr_vector<SwTableToTextSave>(n) {}
};
struct _UndoTableCpyTable_Entry
@@ -102,7 +102,7 @@ struct _UndoTableCpyTable_Entry
// Was the last paragraph of the new and the first paragraph of the old content joined?
bool bJoin; // For redlining only
- _UndoTableCpyTable_Entry( const SwTableBox& rBox );
+ explicit _UndoTableCpyTable_Entry( const SwTableBox& rBox );
~_UndoTableCpyTable_Entry();
};
class _UndoTableCpyTable_Entries : public boost::ptr_vector<_UndoTableCpyTable_Entry> {};
diff --git a/sw/source/core/unocore/XMLRangeHelper.cxx b/sw/source/core/unocore/XMLRangeHelper.cxx
index 79e8a6a1548b..ff19fffbac89 100644
--- a/sw/source/core/unocore/XMLRangeHelper.cxx
+++ b/sw/source/core/unocore/XMLRangeHelper.cxx
@@ -34,7 +34,7 @@ namespace
class lcl_Escape : public ::std::unary_function< sal_Unicode, void >
{
public:
- lcl_Escape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
+ explicit lcl_Escape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
void operator() ( sal_Unicode aChar )
{
static const sal_Unicode m_aQuote( '\'' );
@@ -57,7 +57,7 @@ private:
class lcl_UnEscape : public ::std::unary_function< sal_Unicode, void >
{
public:
- lcl_UnEscape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
+ explicit lcl_UnEscape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
void operator() ( sal_Unicode aChar )
{
static const sal_Unicode m_aBackslash( '\\' );