[Libreoffice-commits] .: 2 commits - avmedia/inc editeng/inc editeng/source svl/inc unotools/inc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Dec 4 05:27:13 PST 2012
avmedia/inc/avmedia/mediaitem.hxx | 2 +-
editeng/inc/editeng/bolnitem.hxx | 2 +-
editeng/inc/editeng/boxitem.hxx | 4 ++--
editeng/inc/editeng/brshitem.hxx | 2 +-
editeng/inc/editeng/bulitem.hxx | 4 ++--
editeng/inc/editeng/colritem.hxx | 2 +-
editeng/inc/editeng/cscoitem.hxx | 2 +-
editeng/inc/editeng/escpitem.hxx | 2 +-
editeng/inc/editeng/flditem.hxx | 8 ++++----
editeng/inc/editeng/fontitem.hxx | 2 +-
editeng/inc/editeng/justifyitem.hxx | 4 ++--
editeng/inc/editeng/lcolitem.hxx | 2 +-
editeng/inc/editeng/lrspitem.hxx | 2 +-
editeng/inc/editeng/numitem.hxx | 8 ++++----
editeng/inc/editeng/opaqitem.hxx | 2 +-
editeng/inc/editeng/pbinitem.hxx | 2 +-
editeng/inc/editeng/pmdlitem.hxx | 2 +-
editeng/inc/editeng/prntitem.hxx | 2 +-
editeng/inc/editeng/protitem.hxx | 2 +-
editeng/inc/editeng/scripttypeitem.hxx | 2 +-
editeng/inc/editeng/shaditem.hxx | 2 +-
editeng/inc/editeng/sizeitem.hxx | 2 +-
editeng/inc/editeng/tstpitem.hxx | 4 ++--
editeng/inc/editeng/ulspitem.hxx | 2 +-
editeng/source/editeng/editdoc.hxx | 2 +-
editeng/source/editeng/impedit3.cxx | 6 +++---
svl/inc/svl/aeitem.hxx | 2 +-
svl/inc/svl/cenumitm.hxx | 6 +++---
svl/inc/svl/eitem.hxx | 4 ++--
svl/inc/svl/flagitem.hxx | 2 +-
svl/inc/svl/hint.hxx | 2 +-
svl/inc/svl/intitem.hxx | 10 +++++-----
svl/inc/svl/macitem.hxx | 2 +-
svl/inc/svl/metitem.hxx | 2 +-
svl/inc/svl/poolitem.hxx | 6 +++---
svl/inc/svl/srchitem.hxx | 2 +-
svl/inc/svl/visitem.hxx | 2 +-
unotools/inc/unotools/configitem.hxx | 2 +-
38 files changed, 59 insertions(+), 59 deletions(-)
New commits:
commit 104a855ade9102d694293c1059f99946752f76d8
Author: David Tardon <dtardon at redhat.com>
Date: Tue Dec 4 13:48:00 2012 +0100
fdo#52640 fix right-aligned tabstops
It is no good to change temporary object...
Change-Id: Ib1178e154341dd0216fd965d3ed6c264de40d634
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index bdaeb9d..59e7ea1 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -407,7 +407,7 @@ public:
void SetLen( sal_uInt16 nL ) { nLen = nL; }
Size& GetSize() { return aOutSz; }
- Size GetSize() const { return aOutSz; }
+ const Size& GetSize() const { return aOutSz; }
sal_uInt8& GetKind() { return nKind; }
sal_uInt8 GetKind() const { return nKind; }
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 1fbddb2..964579c 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1149,7 +1149,7 @@ sal_Bool ImpEditEngine::CreateLines( sal_uInt16 nPara, sal_uInt32 nStartPosY )
nW = nMaxW;
aCurrentTab.bValid = sal_False;
}
- const TextPortion* pTabPortion = pParaPortion->GetTextPortions()[aCurrentTab.nTabPortion];
+ TextPortion* const pTabPortion = pParaPortion->GetTextPortions()[aCurrentTab.nTabPortion];
pTabPortion->GetSize().Width() = aCurrentTab.nTabPos - aCurrentTab.nStartPosX - nW - nStartX;
nTmpWidth = aCurrentTab.nStartPosX + pTabPortion->GetSize().Width() + nWidthAfterTab;
}
@@ -1392,7 +1392,7 @@ sal_Bool ImpEditEngine::CreateLines( sal_uInt16 nPara, sal_uInt32 nStartPosY )
// Width from HangingPunctuation was set to 0 in ImpBreakLine,
// check for rel width now, maybe create compression...
long n = nMaxLineWidth - aTextSize.Width();
- const TextPortion* pTP = pParaPortion->GetTextPortions()[pLine->GetEndPortion()];
+ TextPortion* const pTP = pParaPortion->GetTextPortions()[pLine->GetEndPortion()];
sal_uInt16 nPosInArray = pLine->GetEnd()-1-pLine->GetStart();
long nNewValue = ( nPosInArray ? pLine->GetCharPosArray()[ nPosInArray-1 ] : 0 ) + n;
pLine->GetCharPosArray()[ nPosInArray ] = nNewValue;
@@ -1934,7 +1934,7 @@ void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, Te
if ( bCompressBlank || bHangingPunctuation )
{
- const TextPortion* pTP = pParaPortion->GetTextPortions()[nEndPortion];
+ TextPortion* const pTP = pParaPortion->GetTextPortions()[nEndPortion];
DBG_ASSERT( pTP->GetKind() == PORTIONKIND_TEXT, "BlankRubber: No TextPortion!" );
DBG_ASSERT( nBreakPos > pLine->GetStart(), "SplitTextPortion at the beginning of the line?" );
sal_uInt16 nPosInArray = nBreakPos - 1 - pLine->GetStart();
commit 54107c9b3c0e07d70b9afb7d367dea14bf98e4cd
Author: David Tardon <dtardon at redhat.com>
Date: Tue Dec 4 13:47:35 2012 +0100
more explicit ctors
Change-Id: If91343890d9ed29ff2887e47c7c0a332baa5a8e1
diff --git a/avmedia/inc/avmedia/mediaitem.hxx b/avmedia/inc/avmedia/mediaitem.hxx
index c6d0f5b..ce0a389 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 760b6a0..5582bec 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 1056ec9..76e511d 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 5772733..fca5653 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 c1af8a0..32f8be4 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 23efdcc..efc8c34 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 64a8854..b36e982 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 ac1b048..51b2a5f 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 792057b..1ced8ec 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 9c33b63..e570bcc 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 d57356e..5d03c09 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 a6d309b..31fa25c 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 ef9968c..5b12bce 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 5be3d9e..f0aef1e 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 1084933..930acb7 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 b7c4109..5fefd2f 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 4b16da0..f1a2697 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 48deb23..548db42 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 93d25e8..7899699 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 976e465..a50f82d 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 16ff4bb..7abe135 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 1f692c2..e99f6c0 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 82c01af..d3f9d2c 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 bb00f5a..dc965e1 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 9087803..613fca9 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 c9c2b23..47aa968 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 ba0139f..c9c5e38 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 64396ca..aa59e08 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 52401e2..8f5356a 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 73fc902..c9b9a7f 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 68d6916..712e072 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 b3099d1..090d954 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 4d60a35..4c899f6 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 0e83ebc..7504e42 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 f58ae6b..942b430 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 19cbe1c..d9f7675 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
More information about the Libreoffice-commits
mailing list