summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avmedia/inc/avmedia/mediaitem.hxx2
-rw-r--r--editeng/inc/editeng/bolnitem.hxx2
-rw-r--r--editeng/inc/editeng/boxitem.hxx4
-rw-r--r--editeng/inc/editeng/brshitem.hxx2
-rw-r--r--editeng/inc/editeng/bulitem.hxx4
-rw-r--r--editeng/inc/editeng/colritem.hxx2
-rw-r--r--editeng/inc/editeng/cscoitem.hxx2
-rw-r--r--editeng/inc/editeng/escpitem.hxx2
-rw-r--r--editeng/inc/editeng/flditem.hxx8
-rw-r--r--editeng/inc/editeng/fontitem.hxx2
-rw-r--r--editeng/inc/editeng/justifyitem.hxx4
-rw-r--r--editeng/inc/editeng/lcolitem.hxx2
-rw-r--r--editeng/inc/editeng/lrspitem.hxx2
-rw-r--r--editeng/inc/editeng/numitem.hxx8
-rw-r--r--editeng/inc/editeng/opaqitem.hxx2
-rw-r--r--editeng/inc/editeng/pbinitem.hxx2
-rw-r--r--editeng/inc/editeng/pmdlitem.hxx2
-rw-r--r--editeng/inc/editeng/prntitem.hxx2
-rw-r--r--editeng/inc/editeng/protitem.hxx2
-rw-r--r--editeng/inc/editeng/scripttypeitem.hxx2
-rw-r--r--editeng/inc/editeng/shaditem.hxx2
-rw-r--r--editeng/inc/editeng/sizeitem.hxx2
-rw-r--r--editeng/inc/editeng/tstpitem.hxx4
-rw-r--r--editeng/inc/editeng/ulspitem.hxx2
-rw-r--r--svl/inc/svl/aeitem.hxx2
-rw-r--r--svl/inc/svl/cenumitm.hxx6
-rw-r--r--svl/inc/svl/eitem.hxx4
-rw-r--r--svl/inc/svl/flagitem.hxx2
-rw-r--r--svl/inc/svl/hint.hxx2
-rw-r--r--svl/inc/svl/intitem.hxx10
-rw-r--r--svl/inc/svl/macitem.hxx2
-rw-r--r--svl/inc/svl/metitem.hxx2
-rw-r--r--svl/inc/svl/poolitem.hxx6
-rw-r--r--svl/inc/svl/srchitem.hxx2
-rw-r--r--svl/inc/svl/visitem.hxx2
-rw-r--r--unotools/inc/unotools/configitem.hxx2
36 files changed, 55 insertions, 55 deletions
diff --git a/avmedia/inc/avmedia/mediaitem.hxx b/avmedia/inc/avmedia/mediaitem.hxx
index c6d0f5b4fee1..ce0a389a042c 100644
--- a/avmedia/inc/avmedia/mediaitem.hxx
+++ b/avmedia/inc/avmedia/mediaitem.hxx
@@ -65,7 +65,7 @@ class AVMEDIA_DLLPUBLIC MediaItem : public SfxPoolItem
public:
TYPEINFO();
- MediaItem( sal_uInt16 const i_nWhich = 0,
+ explicit MediaItem( sal_uInt16 const i_nWhich = 0,
sal_uInt32 const nMaskSet = AVMEDIA_SETMASK_NONE );
MediaItem( const MediaItem& rMediaItem );
virtual ~MediaItem();
diff --git a/editeng/inc/editeng/bolnitem.hxx b/editeng/inc/editeng/bolnitem.hxx
index 760b6a0cb61b..5582bec92fac 100644
--- a/editeng/inc/editeng/bolnitem.hxx
+++ b/editeng/inc/editeng/bolnitem.hxx
@@ -41,7 +41,7 @@ class EDITENG_DLLPUBLIC SvxLineItem : public SfxPoolItem
public:
TYPEINFO();
- SvxLineItem( const sal_uInt16 nId );
+ explicit SvxLineItem( const sal_uInt16 nId );
SvxLineItem( const SvxLineItem& rCpy );
~SvxLineItem();
SvxLineItem &operator=( const SvxLineItem& rLine );
diff --git a/editeng/inc/editeng/boxitem.hxx b/editeng/inc/editeng/boxitem.hxx
index 1056ec93e037..76e511d2b35a 100644
--- a/editeng/inc/editeng/boxitem.hxx
+++ b/editeng/inc/editeng/boxitem.hxx
@@ -64,7 +64,7 @@ class EDITENG_DLLPUBLIC SvxBoxItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBoxItem( const sal_uInt16 nId );
+ explicit SvxBoxItem( const sal_uInt16 nId );
SvxBoxItem( const SvxBoxItem &rCpy );
~SvxBoxItem();
SvxBoxItem &operator=( const SvxBoxItem& rBox );
@@ -174,7 +174,7 @@ class EDITENG_DLLPUBLIC SvxBoxInfoItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBoxInfoItem( const sal_uInt16 nId );
+ explicit SvxBoxInfoItem( const sal_uInt16 nId );
SvxBoxInfoItem( const SvxBoxInfoItem &rCpy );
~SvxBoxInfoItem();
SvxBoxInfoItem &operator=( const SvxBoxInfoItem &rCpy );
diff --git a/editeng/inc/editeng/brshitem.hxx b/editeng/inc/editeng/brshitem.hxx
index 5772733e2c8d..fca5653a6aaf 100644
--- a/editeng/inc/editeng/brshitem.hxx
+++ b/editeng/inc/editeng/brshitem.hxx
@@ -67,7 +67,7 @@ class EDITENG_DLLPUBLIC SvxBrushItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBrushItem( sal_uInt16 nWhich );
+ explicit SvxBrushItem( sal_uInt16 nWhich );
SvxBrushItem( const Color& rColor, sal_uInt16 nWhich );
SvxBrushItem( const Graphic& rGraphic,
diff --git a/editeng/inc/editeng/bulitem.hxx b/editeng/inc/editeng/bulitem.hxx
index c1af8a033623..32f8be4dc78a 100644
--- a/editeng/inc/editeng/bulitem.hxx
+++ b/editeng/inc/editeng/bulitem.hxx
@@ -82,8 +82,8 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
public:
TYPEINFO();
- SvxBulletItem( sal_uInt16 nWhich = 0 );
- SvxBulletItem( SvStream& rStrm, sal_uInt16 nWhich = 0 );
+ explicit SvxBulletItem( sal_uInt16 nWhich = 0 );
+ explicit SvxBulletItem( SvStream& rStrm, sal_uInt16 nWhich = 0 );
SvxBulletItem( const SvxBulletItem& );
~SvxBulletItem();
diff --git a/editeng/inc/editeng/colritem.hxx b/editeng/inc/editeng/colritem.hxx
index 23efdccdc398..efc8c34cead3 100644
--- a/editeng/inc/editeng/colritem.hxx
+++ b/editeng/inc/editeng/colritem.hxx
@@ -46,7 +46,7 @@ private:
public:
TYPEINFO();
- SvxColorItem( const sal_uInt16 nId );
+ explicit SvxColorItem( const sal_uInt16 nId );
SvxColorItem( const Color& aColor, const sal_uInt16 nId );
SvxColorItem( SvStream& rStrm, const sal_uInt16 nId );
SvxColorItem( const SvxColorItem& rCopy );
diff --git a/editeng/inc/editeng/cscoitem.hxx b/editeng/inc/editeng/cscoitem.hxx
index 64a88546a668..b36e98250d01 100644
--- a/editeng/inc/editeng/cscoitem.hxx
+++ b/editeng/inc/editeng/cscoitem.hxx
@@ -36,7 +36,7 @@ class EDITENG_DLLPUBLIC SvxCharSetColorItem : public SvxColorItem
public:
TYPEINFO();
- SvxCharSetColorItem( const sal_uInt16 nId );
+ explicit SvxCharSetColorItem( const sal_uInt16 nId );
SvxCharSetColorItem( const Color& aColor, const rtl_TextEncoding eFrom,
const sal_uInt16 nId );
diff --git a/editeng/inc/editeng/escpitem.hxx b/editeng/inc/editeng/escpitem.hxx
index ac1b04888688..51b2a5f7653a 100644
--- a/editeng/inc/editeng/escpitem.hxx
+++ b/editeng/inc/editeng/escpitem.hxx
@@ -49,7 +49,7 @@ class EDITENG_DLLPUBLIC SvxEscapementItem : public SfxEnumItemInterface
public:
TYPEINFO();
- SvxEscapementItem( const sal_uInt16 nId );
+ explicit SvxEscapementItem( const sal_uInt16 nId );
SvxEscapementItem( const SvxEscapement eEscape,
const sal_uInt16 nId );
SvxEscapementItem( const short nEsc, const sal_uInt8 nProp,
diff --git a/editeng/inc/editeng/flditem.hxx b/editeng/inc/editeng/flditem.hxx
index 792057b0d114..1ced8ecdbc56 100644
--- a/editeng/inc/editeng/flditem.hxx
+++ b/editeng/inc/editeng/flditem.hxx
@@ -115,7 +115,7 @@ public:
SV_DECL_PERSIST1( SvxDateField, SvxFieldData, com::sun::star::text::textfield::Type::DATE )
SvxDateField();
- SvxDateField( const Date& rDate,
+ explicit SvxDateField( const Date& rDate,
SvxDateType eType = SVXDATETYPE_VAR,
SvxDateFormat eFormat = SVXDATEFORMAT_STDSMALL );
@@ -227,7 +227,7 @@ class EDITENG_DLLPUBLIC SvxTableField : public SvxFieldData
public:
SV_DECL_PERSIST1( SvxTableField, SvxFieldData, com::sun::star::text::textfield::Type::TABLE )
SvxTableField();
- SvxTableField(int nTab);
+ explicit SvxTableField(int nTab);
void SetTab(int nTab);
int GetTab() const;
@@ -262,7 +262,7 @@ private:
public:
SV_DECL_PERSIST1( SvxExtTimeField, SvxFieldData, com::sun::star::text::textfield::Type::EXTENDED_TIME )
SvxExtTimeField();
- SvxExtTimeField( const Time& rTime,
+ explicit SvxExtTimeField( const Time& rTime,
SvxTimeType eType = SVXTIMETYPE_VAR,
SvxTimeFormat eFormat = SVXTIMEFORMAT_STANDARD );
@@ -306,7 +306,7 @@ private:
public:
SV_DECL_PERSIST1( SvxExtFileField, SvxFieldData, com::sun::star::text::textfield::Type::EXTENDED_FILE )
SvxExtFileField();
- SvxExtFileField( const rtl::OUString& rString,
+ explicit SvxExtFileField( const rtl::OUString& rString,
SvxFileType eType = SVXFILETYPE_VAR,
SvxFileFormat eFormat = SVXFILEFORMAT_FULLPATH );
diff --git a/editeng/inc/editeng/fontitem.hxx b/editeng/inc/editeng/fontitem.hxx
index 9c33b634dfd3..e570bccb9ed8 100644
--- a/editeng/inc/editeng/fontitem.hxx
+++ b/editeng/inc/editeng/fontitem.hxx
@@ -50,7 +50,7 @@ class EDITENG_DLLPUBLIC SvxFontItem : public SfxPoolItem
public:
TYPEINFO();
- SvxFontItem( const sal_uInt16 nId );
+ explicit SvxFontItem( const sal_uInt16 nId );
SvxFontItem( const FontFamily eFam, const String& rFamilyName,
const String& rStyleName,
const FontPitch eFontPitch /*= PITCH_DONTKNOW*/,
diff --git a/editeng/inc/editeng/justifyitem.hxx b/editeng/inc/editeng/justifyitem.hxx
index d57356ee8e96..5d03c09332ca 100644
--- a/editeng/inc/editeng/justifyitem.hxx
+++ b/editeng/inc/editeng/justifyitem.hxx
@@ -30,7 +30,7 @@ class EDITENG_DLLPUBLIC SvxHorJustifyItem: public SfxEnumItem
public:
TYPEINFO();
- SvxHorJustifyItem( const sal_uInt16 nId );
+ explicit SvxHorJustifyItem( const sal_uInt16 nId );
SvxHorJustifyItem(
const SvxCellHorJustify eJustify /*= SVX_HOR_JUSTIFY_STANDARD*/,
@@ -63,7 +63,7 @@ class EDITENG_DLLPUBLIC SvxVerJustifyItem: public SfxEnumItem
public:
TYPEINFO();
- SvxVerJustifyItem( const sal_uInt16 nId );
+ explicit SvxVerJustifyItem( const sal_uInt16 nId );
SvxVerJustifyItem(
const SvxCellVerJustify eJustify /*= SVX_VER_JUSTIFY_STANDARD*/,
diff --git a/editeng/inc/editeng/lcolitem.hxx b/editeng/inc/editeng/lcolitem.hxx
index a6d309b8a90f..31fa25c2e4f1 100644
--- a/editeng/inc/editeng/lcolitem.hxx
+++ b/editeng/inc/editeng/lcolitem.hxx
@@ -32,7 +32,7 @@ class EDITENG_DLLPUBLIC SvxLineColorItem : public SvxColorItem
public:
TYPEINFO();
- SvxLineColorItem( const sal_uInt16 nId );
+ explicit SvxLineColorItem( const sal_uInt16 nId );
SvxLineColorItem( const SvxLineColorItem& rCopy );
~SvxLineColorItem();
diff --git a/editeng/inc/editeng/lrspitem.hxx b/editeng/inc/editeng/lrspitem.hxx
index ef9968c74a7e..5b12bceda592 100644
--- a/editeng/inc/editeng/lrspitem.hxx
+++ b/editeng/inc/editeng/lrspitem.hxx
@@ -67,7 +67,7 @@ class EDITENG_DLLPUBLIC SvxLRSpaceItem : public SfxPoolItem
public:
TYPEINFO();
- SvxLRSpaceItem( const sal_uInt16 nId );
+ explicit SvxLRSpaceItem( const sal_uInt16 nId );
SvxLRSpaceItem( const long nLeft, const long nRight,
const long nTLeft /*= 0*/, const short nOfset /*= 0*/,
const sal_uInt16 nId );
diff --git a/editeng/inc/editeng/numitem.hxx b/editeng/inc/editeng/numitem.hxx
index 5be3d9e5226a..f0aef1e65975 100644
--- a/editeng/inc/editeng/numitem.hxx
+++ b/editeng/inc/editeng/numitem.hxx
@@ -68,7 +68,7 @@ class EDITENG_DLLPUBLIC SvxNumberType
sal_Bool bShowSymbol; // Also show Symbol ?
public:
- SvxNumberType(sal_Int16 nType = com::sun::star::style::NumberingType::ARABIC);
+ explicit SvxNumberType(sal_Int16 nType = com::sun::star::style::NumberingType::ARABIC);
SvxNumberType(const SvxNumberType& rType);
~SvxNumberType();
@@ -154,7 +154,7 @@ private:
DECL_STATIC_LINK( SvxNumberFormat, GraphicArrived, void * );
virtual void NotifyGraphicArrived();
public:
- SvxNumberFormat( sal_Int16 nNumberingType,
+ explicit SvxNumberFormat( sal_Int16 nNumberingType,
SvxNumPositionAndSpaceMode ePositionAndSpaceMode = LABEL_WIDTH_AND_POSITION );
SvxNumberFormat(const SvxNumberFormat& rFormat);
@@ -288,7 +288,7 @@ class EDITENG_DLLPUBLIC SvxNumBulletItem : public SfxPoolItem
{
SvxNumRule* pNumRule;
public:
- SvxNumBulletItem(SvxNumRule& rRule);
+ explicit SvxNumBulletItem(SvxNumRule& rRule);
SvxNumBulletItem(SvxNumRule& rRule, sal_uInt16 nWhich );
SvxNumBulletItem(const SvxNumBulletItem& rCopy);
virtual ~SvxNumBulletItem();
@@ -313,7 +313,7 @@ class SvxNodeNum
sal_Bool bStartNum; // Restart numbering
public:
- inline SvxNodeNum( sal_uInt8 nLevel = SVX_NO_NUM, sal_uInt16 nSetVal = USHRT_MAX );
+ explicit inline SvxNodeNum( sal_uInt8 nLevel = SVX_NO_NUM, sal_uInt16 nSetVal = USHRT_MAX );
inline SvxNodeNum& operator=( const SvxNodeNum& rCpy );
sal_uInt8 GetLevel() const { return nMyLevel; }
diff --git a/editeng/inc/editeng/opaqitem.hxx b/editeng/inc/editeng/opaqitem.hxx
index 1084933b6428..930acb73681b 100644
--- a/editeng/inc/editeng/opaqitem.hxx
+++ b/editeng/inc/editeng/opaqitem.hxx
@@ -41,7 +41,7 @@ class EDITENG_DLLPUBLIC SvxOpaqueItem : public SfxBoolItem
public:
TYPEINFO();
- SvxOpaqueItem( const sal_uInt16 nId , const sal_Bool bOpa = sal_True );
+ explicit SvxOpaqueItem( const sal_uInt16 nId , const sal_Bool bOpa = sal_True );
inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
// "pure virtual Methods" from SfxPoolItem
diff --git a/editeng/inc/editeng/pbinitem.hxx b/editeng/inc/editeng/pbinitem.hxx
index b7c4109206af..5fefd2f66567 100644
--- a/editeng/inc/editeng/pbinitem.hxx
+++ b/editeng/inc/editeng/pbinitem.hxx
@@ -38,7 +38,7 @@ class EDITENG_DLLPUBLIC SvxPaperBinItem : public SfxByteItem
public:
TYPEINFO();
- inline SvxPaperBinItem( const sal_uInt16 nId ,
+ explicit inline SvxPaperBinItem( const sal_uInt16 nId ,
const sal_uInt8 nTray = PAPERBIN_PRINTER_SETTINGS );
inline SvxPaperBinItem &operator=( const SvxPaperBinItem &rCpy );
diff --git a/editeng/inc/editeng/pmdlitem.hxx b/editeng/inc/editeng/pmdlitem.hxx
index 4b16da0d2ded..f1a2697b65d5 100644
--- a/editeng/inc/editeng/pmdlitem.hxx
+++ b/editeng/inc/editeng/pmdlitem.hxx
@@ -37,7 +37,7 @@ private:
public:
TYPEINFO();
- inline SvxPageModelItem( sal_uInt16 nWh );
+ explicit inline SvxPageModelItem( sal_uInt16 nWh );
inline SvxPageModelItem( const String& rModel, sal_Bool bA /*= sal_False*/,
sal_uInt16 nWh );
inline SvxPageModelItem& operator=( const SvxPageModelItem& rModel );
diff --git a/editeng/inc/editeng/prntitem.hxx b/editeng/inc/editeng/prntitem.hxx
index 48deb239807e..548db4223488 100644
--- a/editeng/inc/editeng/prntitem.hxx
+++ b/editeng/inc/editeng/prntitem.hxx
@@ -38,7 +38,7 @@ class EDITENG_DLLPUBLIC SvxPrintItem : public SfxBoolItem
public:
TYPEINFO();
- SvxPrintItem( const sal_uInt16 nId , const sal_Bool bPrt = sal_True );
+ explicit SvxPrintItem( const sal_uInt16 nId , const sal_Bool bPrt = sal_True );
inline SvxPrintItem &operator=( const SvxPrintItem &rCpy );
// "pure virtual Methods" from SfxPoolItem
diff --git a/editeng/inc/editeng/protitem.hxx b/editeng/inc/editeng/protitem.hxx
index 93d25e8c1007..7899699ba352 100644
--- a/editeng/inc/editeng/protitem.hxx
+++ b/editeng/inc/editeng/protitem.hxx
@@ -45,7 +45,7 @@ class EDITENG_DLLPUBLIC SvxProtectItem : public SfxPoolItem
public:
TYPEINFO();
- inline SvxProtectItem( const sal_uInt16 nId );
+ explicit inline SvxProtectItem( const sal_uInt16 nId );
inline SvxProtectItem &operator=( const SvxProtectItem &rCpy );
// "pure virtual Methods" from SfxPoolItem
diff --git a/editeng/inc/editeng/scripttypeitem.hxx b/editeng/inc/editeng/scripttypeitem.hxx
index 976e4651ac9f..a50f82d9d951 100644
--- a/editeng/inc/editeng/scripttypeitem.hxx
+++ b/editeng/inc/editeng/scripttypeitem.hxx
@@ -40,7 +40,7 @@ class EDITENG_DLLPUBLIC SvxScriptTypeItem : public SfxUInt16Item
public:
TYPEINFO();
- SvxScriptTypeItem( sal_uInt16 nType = SCRIPTTYPE_LATIN );
+ explicit SvxScriptTypeItem( sal_uInt16 nType = SCRIPTTYPE_LATIN );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
};
diff --git a/editeng/inc/editeng/shaditem.hxx b/editeng/inc/editeng/shaditem.hxx
index 16ff4bb94f12..7abe135e2857 100644
--- a/editeng/inc/editeng/shaditem.hxx
+++ b/editeng/inc/editeng/shaditem.hxx
@@ -49,7 +49,7 @@ class EDITENG_DLLPUBLIC SvxShadowItem : public SfxEnumItemInterface
public:
TYPEINFO();
- SvxShadowItem( const sal_uInt16 nId ,
+ explicit SvxShadowItem( const sal_uInt16 nId ,
const Color *pColor = 0, const sal_uInt16 nWidth = 100 /*5pt*/,
const SvxShadowLocation eLoc = SVX_SHADOW_NONE );
diff --git a/editeng/inc/editeng/sizeitem.hxx b/editeng/inc/editeng/sizeitem.hxx
index 1f692c257081..e99f6c002bed 100644
--- a/editeng/inc/editeng/sizeitem.hxx
+++ b/editeng/inc/editeng/sizeitem.hxx
@@ -38,7 +38,7 @@ class EDITENG_DLLPUBLIC SvxSizeItem : public SfxPoolItem
public:
TYPEINFO();
- SvxSizeItem( const sal_uInt16 nId );
+ explicit SvxSizeItem( const sal_uInt16 nId );
SvxSizeItem( const sal_uInt16 nId, const Size& rSize);
inline SvxSizeItem& operator=( const SvxSizeItem &rCpy );
diff --git a/editeng/inc/editeng/tstpitem.hxx b/editeng/inc/editeng/tstpitem.hxx
index 82c01afe2c6d..d3f9d2c8470a 100644
--- a/editeng/inc/editeng/tstpitem.hxx
+++ b/editeng/inc/editeng/tstpitem.hxx
@@ -47,7 +47,7 @@ private:
public:
SvxTabStop();
- SvxTabStop( const sal_Int32 nPos,
+ explicit SvxTabStop( const sal_Int32 nPos,
const SvxTabAdjust eAdjst = SVX_TAB_ADJUST_LEFT,
const sal_Unicode cDec = cDfltDecimalChar,
const sal_Unicode cFil = cDfltFillChar );
@@ -107,7 +107,7 @@ class EDITENG_DLLPUBLIC SvxTabStopItem : public SfxPoolItem
public:
TYPEINFO();
- SvxTabStopItem( sal_uInt16 nWhich );
+ explicit SvxTabStopItem( sal_uInt16 nWhich );
SvxTabStopItem( const sal_uInt16 nTabs,
const sal_uInt16 nDist,
const SvxTabAdjust eAdjst /*= SVX_TAB_ADJUST_DEFAULT*/,
diff --git a/editeng/inc/editeng/ulspitem.hxx b/editeng/inc/editeng/ulspitem.hxx
index bb00f5af8d88..dc965e1f78ef 100644
--- a/editeng/inc/editeng/ulspitem.hxx
+++ b/editeng/inc/editeng/ulspitem.hxx
@@ -45,7 +45,7 @@ class EDITENG_DLLPUBLIC SvxULSpaceItem : public SfxPoolItem
public:
TYPEINFO();
- SvxULSpaceItem( const sal_uInt16 nId );
+ explicit SvxULSpaceItem( const sal_uInt16 nId );
SvxULSpaceItem( const sal_uInt16 nUp, const sal_uInt16 nLow,
const sal_uInt16 nId );
inline SvxULSpaceItem& operator=( const SvxULSpaceItem &rCpy );
diff --git a/svl/inc/svl/aeitem.hxx b/svl/inc/svl/aeitem.hxx
index 9087803416a3..613fca989aa4 100644
--- a/svl/inc/svl/aeitem.hxx
+++ b/svl/inc/svl/aeitem.hxx
@@ -37,7 +37,7 @@ protected:
public:
TYPEINFO();
SfxAllEnumItem();
- SfxAllEnumItem( sal_uInt16 nWhich);
+ explicit SfxAllEnumItem( sal_uInt16 nWhich);
SfxAllEnumItem( sal_uInt16 nWhich, sal_uInt16 nVal );
SfxAllEnumItem( sal_uInt16 nWhich, SvStream &rStream );
SfxAllEnumItem( const SfxAllEnumItem & );
diff --git a/svl/inc/svl/cenumitm.hxx b/svl/inc/svl/cenumitm.hxx
index c9c2b2352ab1..47aa96800419 100644
--- a/svl/inc/svl/cenumitm.hxx
+++ b/svl/inc/svl/cenumitm.hxx
@@ -30,7 +30,7 @@ DBG_NAMEEX(SfxEnumItemInterface)
class SVL_DLLPUBLIC SfxEnumItemInterface: public SfxPoolItem
{
protected:
- SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {}
+ explicit SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {}
SfxEnumItemInterface(const SfxEnumItemInterface & rItem):
SfxPoolItem(rItem) {}
@@ -89,7 +89,7 @@ class SVL_DLLPUBLIC CntEnumItem: public SfxEnumItemInterface
sal_uInt16 m_nValue;
protected:
- CntEnumItem(sal_uInt16 which = 0, sal_uInt16 nTheValue = 0):
+ explicit CntEnumItem(sal_uInt16 which = 0, sal_uInt16 nTheValue = 0):
SfxEnumItemInterface(which), m_nValue(nTheValue) {}
CntEnumItem(sal_uInt16 which, SvStream & rStream);
@@ -127,7 +127,7 @@ class SVL_DLLPUBLIC CntBoolItem: public SfxPoolItem
public:
TYPEINFO();
- CntBoolItem(sal_uInt16 which = 0, sal_Bool bTheValue = sal_False):
+ explicit CntBoolItem(sal_uInt16 which = 0, sal_Bool bTheValue = sal_False):
SfxPoolItem(which), m_bValue(bTheValue) {}
CntBoolItem(sal_uInt16 nWhich, SvStream & rStream);
diff --git a/svl/inc/svl/eitem.hxx b/svl/inc/svl/eitem.hxx
index ba0139f9add9..c9c5e389132f 100644
--- a/svl/inc/svl/eitem.hxx
+++ b/svl/inc/svl/eitem.hxx
@@ -27,7 +27,7 @@
class SVL_DLLPUBLIC SfxEnumItem: public CntEnumItem
{
protected:
- SfxEnumItem(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
+ explicit SfxEnumItem(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
CntEnumItem(which, nValue) {}
SfxEnumItem(sal_uInt16 which, SvStream & rStream):
@@ -44,7 +44,7 @@ class SVL_DLLPUBLIC SfxBoolItem: public CntBoolItem
public:
TYPEINFO();
- SfxBoolItem(sal_uInt16 which = 0, sal_Bool bValue = sal_False):
+ explicit SfxBoolItem(sal_uInt16 which = 0, sal_Bool bValue = sal_False):
CntBoolItem(which, bValue) {}
SfxBoolItem(sal_uInt16 which, SvStream & rStream):
diff --git a/svl/inc/svl/flagitem.hxx b/svl/inc/svl/flagitem.hxx
index 64396cae9e4f..aa59e08cc01c 100644
--- a/svl/inc/svl/flagitem.hxx
+++ b/svl/inc/svl/flagitem.hxx
@@ -37,7 +37,7 @@ class SVL_DLLPUBLIC SfxFlagItem: public SfxPoolItem
public:
TYPEINFO();
- SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0 );
+ explicit SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0 );
SfxFlagItem( const SfxFlagItem& );
~SfxFlagItem() {
diff --git a/svl/inc/svl/hint.hxx b/svl/inc/svl/hint.hxx
index 52401e25409a..8f5356ac9a13 100644
--- a/svl/inc/svl/hint.hxx
+++ b/svl/inc/svl/hint.hxx
@@ -40,7 +40,7 @@ public:
\
public: \
TYPEINFO(); \
- Name( Type* Object, bool bOwnedByHint = false ); \
+ explicit Name( Type* Object, bool bOwnedByHint = false ); \
~Name(); \
\
Type* GetObject() const { return pObj; } \
diff --git a/svl/inc/svl/intitem.hxx b/svl/inc/svl/intitem.hxx
index 73fc9026479c..c9b9a7f79bc3 100644
--- a/svl/inc/svl/intitem.hxx
+++ b/svl/inc/svl/intitem.hxx
@@ -29,7 +29,7 @@ class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
public:
TYPEINFO();
- SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
+ explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
CntByteItem(which, nValue) {}
virtual SfxPoolItem * Create(SvStream & rStream, sal_uInt16) const;
@@ -48,7 +48,7 @@ class SVL_DLLPUBLIC SfxInt16Item: public SfxPoolItem
public:
TYPEINFO();
- SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
+ explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
SfxPoolItem(which), m_nValue(nTheValue)
{ DBG_CTOR(SfxInt16Item, 0); }
@@ -106,7 +106,7 @@ class SVL_DLLPUBLIC SfxUInt16Item: public CntUInt16Item
public:
TYPEINFO();
- SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
+ explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
CntUInt16Item(which, nValue) {}
SfxUInt16Item(sal_uInt16 which, SvStream & rStream):
@@ -125,7 +125,7 @@ class SVL_DLLPUBLIC SfxInt32Item: public CntInt32Item
public:
TYPEINFO();
- SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
+ explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
CntInt32Item(which, nValue) {}
SfxInt32Item(sal_uInt16 which, SvStream & rStream):
@@ -145,7 +145,7 @@ class SVL_DLLPUBLIC SfxUInt32Item: public CntUInt32Item
public:
TYPEINFO();
- SfxUInt32Item(sal_uInt16 which = 0, sal_uInt32 nValue = 0):
+ explicit SfxUInt32Item(sal_uInt16 which = 0, sal_uInt32 nValue = 0):
CntUInt32Item(which, nValue) {}
SfxUInt32Item(sal_uInt16 which, SvStream & rStream):
diff --git a/svl/inc/svl/macitem.hxx b/svl/inc/svl/macitem.hxx
index 68d69162041c..712e072a0f15 100644
--- a/svl/inc/svl/macitem.hxx
+++ b/svl/inc/svl/macitem.hxx
@@ -160,7 +160,7 @@ class SVL_DLLPUBLIC SvxMacroItem: public SfxPoolItem
public:
TYPEINFO();
- inline SvxMacroItem ( const sal_uInt16 nId /*= ITEMID_MACRO*/ );
+ explicit inline SvxMacroItem ( const sal_uInt16 nId /*= ITEMID_MACRO*/ );
// "pure virtual Methoden" vom SfxPoolItem
virtual int operator==( const SfxPoolItem& ) const;
diff --git a/svl/inc/svl/metitem.hxx b/svl/inc/svl/metitem.hxx
index b3099d1bd8c0..090d95450159 100644
--- a/svl/inc/svl/metitem.hxx
+++ b/svl/inc/svl/metitem.hxx
@@ -30,7 +30,7 @@ class SVL_DLLPUBLIC SfxMetricItem: public SfxInt32Item
{
public:
TYPEINFO();
- SfxMetricItem( sal_uInt16 nWhich = 0, sal_uInt32 nValue = 0 );
+ explicit SfxMetricItem( sal_uInt16 nWhich = 0, sal_uInt32 nValue = 0 );
SfxMetricItem( sal_uInt16 nWhich, SvStream & );
SfxMetricItem( const SfxMetricItem& );
~SfxMetricItem() {
diff --git a/svl/inc/svl/poolitem.hxx b/svl/inc/svl/poolitem.hxx
index 4d60a354795a..4c899f64f91d 100644
--- a/svl/inc/svl/poolitem.hxx
+++ b/svl/inc/svl/poolitem.hxx
@@ -187,7 +187,7 @@ private:
SVL_DLLPRIVATE long Delete_Impl(void*);
protected:
- SfxPoolItem( sal_uInt16 nWhich = 0 );
+ explicit SfxPoolItem( sal_uInt16 nWhich = 0 );
SfxPoolItem( const SfxPoolItem& );
public:
@@ -341,7 +341,7 @@ class SVL_DLLPUBLIC SfxVoidItem: public SfxPoolItem
SfxVoidItem & operator=( const SfxVoidItem& ); // not implemented.
public:
TYPEINFO();
- SfxVoidItem( sal_uInt16 nWhich );
+ explicit SfxVoidItem( sal_uInt16 nWhich );
SfxVoidItem( sal_uInt16 nWhich, SvStream & );
SfxVoidItem( const SfxVoidItem& );
~SfxVoidItem();
@@ -401,7 +401,7 @@ class SVL_DLLPUBLIC SfxItemHandle
sal_uInt16 *pRef;
SfxPoolItem *pItem;
public:
- SfxItemHandle( SfxPoolItem& );
+ explicit SfxItemHandle( SfxPoolItem& );
SfxItemHandle( const SfxItemHandle& );
~SfxItemHandle();
diff --git a/svl/inc/svl/srchitem.hxx b/svl/inc/svl/srchitem.hxx
index 0e83ebcfd0bc..7504e421a567 100644
--- a/svl/inc/svl/srchitem.hxx
+++ b/svl/inc/svl/srchitem.hxx
@@ -78,7 +78,7 @@ class SVL_DLLPUBLIC SvxSearchItem :
public:
TYPEINFO();
- SvxSearchItem( const sal_uInt16 nId );
+ explicit SvxSearchItem( const sal_uInt16 nId );
SvxSearchItem( const SvxSearchItem& rItem );
virtual ~SvxSearchItem();
diff --git a/svl/inc/svl/visitem.hxx b/svl/inc/svl/visitem.hxx
index f58ae6ba1cc9..942b43009f73 100644
--- a/svl/inc/svl/visitem.hxx
+++ b/svl/inc/svl/visitem.hxx
@@ -35,7 +35,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem: public SfxPoolItem
public:
TYPEINFO();
- SfxVisibilityItem(sal_uInt16 which = 0, sal_Bool bVisible = sal_True):
+ explicit SfxVisibilityItem(sal_uInt16 which = 0, sal_Bool bVisible = sal_True):
SfxPoolItem(which)
{
m_nValue.bVisible = bVisible;
diff --git a/unotools/inc/unotools/configitem.hxx b/unotools/inc/unotools/configitem.hxx
index 19cbe1cd375f..d9f7675a185e 100644
--- a/unotools/inc/unotools/configitem.hxx
+++ b/unotools/inc/unotools/configitem.hxx
@@ -104,7 +104,7 @@ namespace utl
GetTree();
protected:
- ConfigItem(const OUString &rSubTree,
+ explicit ConfigItem(const OUString &rSubTree,
sal_Int16 nMode = CONFIG_MODE_DELAYED_UPDATE);
void SetModified (); // mark item as modified