[Libreoffice-commits] core.git: framework/inc hwpfilter/source i18npool/source idl/inc l10ntools/inc lotuswordpro/source
Noel Grandin
noel at peralex.com
Fri Aug 5 11:52:14 UTC 2016
framework/inc/xml/menudocumenthandler.hxx | 2 +-
hwpfilter/source/hpara.h | 2 +-
i18npool/source/localedata/LocaleNode.cxx | 2 +-
i18npool/source/search/levdis.hxx | 2 +-
idl/inc/database.hxx | 2 +-
l10ntools/inc/export.hxx | 2 +-
l10ntools/inc/xmlparse.hxx | 2 +-
lotuswordpro/source/filter/lwpframelayout.hxx | 2 +-
lotuswordpro/source/filter/lwplayout.hxx | 2 +-
lotuswordpro/source/filter/lwppagelayout.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfcell.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfcellstyle.hxx | 4 ++--
lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx | 8 ++++----
lotuswordpro/source/filter/xfilter/xfentry.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xffont.hxx | 4 ++--
lotuswordpro/source/filter/xfilter/xffooterstyle.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfframestyle.hxx | 4 ++--
lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfindex.hxx | 6 +++---
lotuswordpro/source/filter/xfilter/xflist.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfliststyle.hxx | 6 +++---
lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx | 2 +-
lotuswordpro/source/filter/xfilter/xfpagemaster.hxx | 6 +++---
lotuswordpro/source/filter/xfilter/xfparastyle.hxx | 8 ++++----
lotuswordpro/source/filter/xfilter/xftablestyle.hxx | 2 +-
26 files changed, 41 insertions(+), 41 deletions(-)
New commits:
commit dbe0b5aa9dc016498c623e76babcc486894d4235
Author: Noel Grandin <noel at peralex.com>
Date: Fri Aug 5 11:34:43 2016 +0200
loplugin:countusersofdefaultparams in framework..lotuswordpro
Change-Id: I9833d85eb6543e996b0f357657c53b1c076ecde4
Reviewed-on: https://gerrit.libreoffice.org/27898
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/framework/inc/xml/menudocumenthandler.hxx b/framework/inc/xml/menudocumenthandler.hxx
index 58df5bb..ce51a1d 100644
--- a/framework/inc/xml/menudocumenthandler.hxx
+++ b/framework/inc/xml/menudocumenthandler.hxx
@@ -265,7 +265,7 @@ class FWE_DLLPUBLIC OWriteMenuDocumentHandler
void WriteMenu( const css::uno::Reference< css::container::XIndexAccess >& rSubMenuContainer ) throw
( css::xml::sax::SAXException, css::uno::RuntimeException );
- void WriteMenuItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, sal_Int16 nStyle = 0 );
+ void WriteMenuItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, sal_Int16 nStyle );
void WriteMenuSeparator();
css::uno::Reference< css::container::XIndexAccess > m_xMenuBarContainer;
diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h
index 28e67dc..afb9f5a 100644
--- a/hwpfilter/source/hpara.h
+++ b/hwpfilter/source/hpara.h
@@ -115,7 +115,7 @@ class DLLEXPORT HWPPara
HWPPara(void);
~HWPPara(void);
- bool Read(HWPFile &hwpf, unsigned char flag = 0);
+ bool Read(HWPFile &hwpf, unsigned char flag);
void SetNext(HWPPara *n) { _next = n; };
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 690bfeb..13ff853 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -176,7 +176,7 @@ void print_color( int color )
printf("\033[%dm", color);
}
-void print_node( const LocaleNode* p, int depth=0 )
+void print_node( const LocaleNode* p, int depth )
{
if( !p ) return;
diff --git a/i18npool/source/search/levdis.hxx b/i18npool/source/search/levdis.hxx
index cf7561d..ec82df0 100644
--- a/i18npool/source/search/levdis.hxx
+++ b/i18npool/source/search/levdis.hxx
@@ -180,7 +180,7 @@ public:
@returns nLimit for later comparison with WLD()
*/
void CalcLPQR( int nOtherX, int nShorterY, int nLongerZ,
- bool bRelaxed = true );
+ bool bRelaxed );
inline int GetLimit() const { return nLimit; }
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx
index eb43e5f..0ed28a6 100644
--- a/idl/inc/database.hxx
+++ b/idl/inc/database.hxx
@@ -130,7 +130,7 @@ public:
SvMetaType * ReadKnownType( SvTokenStream & rInStm );
SvMetaAttribute * ReadKnownAttr( SvTokenStream & rInStm,
- SvMetaType * pType = nullptr );
+ SvMetaType * pType );
SvMetaAttribute * FindKnownAttr( const SvIdentifier& );
SvMetaClass * ReadKnownClass( SvTokenStream & rInStm );
SvMetaClass * FindKnownClass( const OString& aName );
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 4984800..1273efd 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -326,7 +326,7 @@ class MergeDataFile
MergeEntrys *GetMergeEntrysCaseSensitive( ResData *pResData );
static OString CreateKey(const OString& rTYP, const OString& rGID,
- const OString& rLID, const OString& rFilename , bool bCaseSensitive = false);
+ const OString& rLID, const OString& rFilename, bool bCaseSensitive);
};
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 8d8fe9f..f3085a5 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -154,7 +154,7 @@ public:
XMLFile( const XMLFile& rObj ) ;
virtual ~XMLFile();
- void Print( XMLNode *pCur = nullptr, sal_uInt16 nLevel = 0 );
+ void Print( XMLNode *pCur, sal_uInt16 nLevel = 0 );
void SearchL10NElements( XMLChildNode *pCur, int pos = 0 );
void Extract();
diff --git a/lotuswordpro/source/filter/lwpframelayout.hxx b/lotuswordpro/source/filter/lwpframelayout.hxx
index e396060..505e0cb 100644
--- a/lotuswordpro/source/filter/lwpframelayout.hxx
+++ b/lotuswordpro/source/filter/lwpframelayout.hxx
@@ -75,7 +75,7 @@ public:
explicit LwpFrame(LwpPlacableLayout* pLayout);
~LwpFrame();
void RegisterStyle(XFFrameStyle* pFrameStyle);
- void Parse(XFFrame* pXFFrame, sal_Int32 nPageNo = 0);
+ void Parse(XFFrame* pXFFrame, sal_Int32 nPageNo);
void XFConvert(XFContentContainer* pCont);
private:
void ApplyWrapType(XFFrameStyle* pFrameStyle);
diff --git a/lotuswordpro/source/filter/lwplayout.hxx b/lotuswordpro/source/filter/lwplayout.hxx
index 3dd9a0f..e2db72f 100644
--- a/lotuswordpro/source/filter/lwplayout.hxx
+++ b/lotuswordpro/source/filter/lwplayout.hxx
@@ -182,7 +182,7 @@ public:
virtual bool IsUseOnAllEvenPages(){ return false;}
virtual bool IsUseOnAllOddPages(){ return false;}
virtual bool IsUseOnPage(){ return false;}
- virtual sal_Int32 GetPageNumber(sal_uInt16 /*nLayoutNumber*/ = 0){ return -1;}
+ virtual sal_Int32 GetPageNumber(sal_uInt16 /*nLayoutNumber*/) { return -1;}
bool IsMinimumHeight();
virtual bool IsForWaterMark(){ return false;}
virtual LwpPara* GetLastParaOfPreviousStory() { return nullptr; }
diff --git a/lotuswordpro/source/filter/lwppagelayout.hxx b/lotuswordpro/source/filter/lwppagelayout.hxx
index 8074c3b..8b64f2f 100644
--- a/lotuswordpro/source/filter/lwppagelayout.hxx
+++ b/lotuswordpro/source/filter/lwppagelayout.hxx
@@ -101,7 +101,7 @@ public:
void ConvertFillerPageText(XFContentContainer* pCont);
void ResetXFColumns();
LwpPageLayout* GetOddChildLayout();
- virtual sal_Int32 GetPageNumber(sal_uInt16 nLayoutNumber = 0) override;
+ virtual sal_Int32 GetPageNumber(sal_uInt16 nLayoutNumber) override;
bool operator <(LwpPageLayout& Other);
LwpPara* GetPagePosition();
};
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.hxx b/lotuswordpro/source/filter/xfilter/xfcell.hxx
index 5d7b0c9..eba8bac 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.hxx
@@ -114,7 +114,7 @@ public:
/**
* @descr Set cell protected.
*/
- void SetProtect(bool protect=true);
+ void SetProtect(bool protect);
/**
* @descr Set cell column id.
diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx
index 0131d0c..c85ce06 100644
--- a/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.hxx
@@ -97,13 +97,13 @@ public:
between the border and the top of the text.
* @param: indent value of the padding.
*/
- void SetPadding(double left, double right = -1, double top = -1, double bottom = -1);
+ void SetPadding(double left, double right, double top, double bottom);
/**
* @descr: Set alignment property of the cell.
* @param: eAlign alignment type,left,right,center or justify.
*/
- void SetAlignType(enumXFAlignType hori=enumXFAlignNone, enumXFAlignType vert = enumXFAlignBottom);
+ void SetAlignType(enumXFAlignType hori, enumXFAlignType vert);
/**
* @descr: The borders is complex,so you have to create one before use.
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx b/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx
index 0681be6..d8a32aa 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx
@@ -86,7 +86,7 @@ public:
/**
* @descr Set drawing object border line.
*/
- void SetLineStyle(double width, XFColor color = XFColor(0,0,0));
+ void SetLineStyle(double width, XFColor color);
/**
* @descr Set drawing object dash border style.
@@ -101,17 +101,17 @@ public:
/**
* @descr Set drawing object area grid style.
*/
- void SetAreaLineStyle(enumXFAreaLineStyle style, sal_Int32 angle = 0, double space = 0.102, XFColor lineColor = XFColor(0,0,0));
+ void SetAreaLineStyle(enumXFAreaLineStyle style, sal_Int32 angle, double space, XFColor lineColor);
/**
* @descr Set drawing object arrow start style,only lines can have arrows.
*/
- void SetArrowStart(const OUString& start, double size=0.3);
+ void SetArrowStart(const OUString& start, double size);
/**
* @descr Set drawing object arrow end style,only lines can have arrows.
*/
- void SetArrowEnd(const OUString& end, double size=0.3);
+ void SetArrowEnd(const OUString& end, double size);
void SetFontWorkStyle(enumXFFWStyle eStyle, enumXFFWAdjust eAdjust);
diff --git a/lotuswordpro/source/filter/xfilter/xfentry.hxx b/lotuswordpro/source/filter/xfilter/xfentry.hxx
index c7c8fc2..dc904f9 100644
--- a/lotuswordpro/source/filter/xfilter/xfentry.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfentry.hxx
@@ -85,7 +85,7 @@ public:
/**
* @descr Set entry key. The keys is available only for enumXFEntryAlphabetical.
*/
- void SetKey(const OUString& key1, const OUString& key2="");
+ void SetKey(const OUString& key1, const OUString& key2);
/**
* @descr Set outline level. This is available for enumXFEntryTOC and enumXFEntryUserIndex.
diff --git a/lotuswordpro/source/filter/xfilter/xffont.hxx b/lotuswordpro/source/filter/xfilter/xffont.hxx
index 99d6095..3808e76 100644
--- a/lotuswordpro/source/filter/xfilter/xffont.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffont.hxx
@@ -154,7 +154,7 @@ public:
/**
* @descr Set whether font is italic.
*/
- void SetItalic(bool italic = true);
+ void SetItalic(bool italic);
/**
* @descr Set whether font is italic for asia locale.
@@ -169,7 +169,7 @@ public:
/**
* @descr Set font bold.
*/
- void SetBold(bool bold = true);
+ void SetBold(bool bold);
/**
* @descr Set font bold for asia locale.
diff --git a/lotuswordpro/source/filter/xfilter/xffooterstyle.hxx b/lotuswordpro/source/filter/xfilter/xffooterstyle.hxx
index c8cb895..dfc82da 100644
--- a/lotuswordpro/source/filter/xfilter/xffooterstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffooterstyle.hxx
@@ -70,7 +70,7 @@ public:
{
}
- void SetMargins(double left = -1, double right = -1, double top = -1)
+ void SetMargins(double left, double right, double top)
{
if( left != -1 )
m_aMargin.SetLeft(left);
diff --git a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
index 6c1c5af..da6a661 100644
--- a/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
+++ b/lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx
@@ -70,7 +70,7 @@ public:
public:
void SetMasterPage(const OUString& masterPage);
- void SetStartValue(sal_Int32 value=0);
+ void SetStartValue(sal_Int32 value);
void SetRestartOnPage();
diff --git a/lotuswordpro/source/filter/xfilter/xfframestyle.hxx b/lotuswordpro/source/filter/xfilter/xfframestyle.hxx
index 727fad5..8e5edce 100644
--- a/lotuswordpro/source/filter/xfilter/xfframestyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfframestyle.hxx
@@ -89,12 +89,12 @@ public:
/**
* @descr: space between frame and paragraph text.
*/
- void SetMargins(double left, double right=-1,double top=-1, double bottom=-1);
+ void SetMargins(double left, double right, double top, double bottom);
/**
* @descr: space between frame and text inside frame.
*/
- void SetPadding(double left, double right=-1,double top=-1, double bottom=-1);
+ void SetPadding(double left, double right, double top, double bottom);
/**
* @descr: set the border property of the frame.
diff --git a/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx b/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx
index c08f0f5..333e3af 100644
--- a/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx
@@ -82,7 +82,7 @@ public:
/**
* @descr Set margins for header style.
*/
- void SetMargins(double left = -1, double right = -1, double bottom = -1);
+ void SetMargins(double left, double right, double bottom);
void SetDynamicSpace(bool dynamic);
diff --git a/lotuswordpro/source/filter/xfilter/xfindex.hxx b/lotuswordpro/source/filter/xfilter/xfindex.hxx
index aa34178..7127617 100644
--- a/lotuswordpro/source/filter/xfilter/xfindex.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfindex.hxx
@@ -92,17 +92,17 @@ public:
/**
* @descr Add a entry in the template.
*/
- void AddEntry(enumXFIndexTemplate entry, const OUString& styleName = "");
+ void AddEntry(enumXFIndexTemplate entry, const OUString& styleName);
/**
* @descr Add a tab entry in the template.
*/
- void AddTabEntry(enumXFTab type, double len, sal_Unicode leader = '*', sal_Unicode delimiter='.', const OUString& styleName = "");
+ void AddTabEntry(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter, const OUString& styleName = "");
/**
* @descr Add a entry in the template.
*/
- void AddTextEntry(const OUString& sSpan, const OUString& styleName = "");
+ void AddTextEntry(const OUString& sSpan, const OUString& styleName);
virtual void ToXml(IXFStream *pStrm) override;
diff --git a/lotuswordpro/source/filter/xfilter/xflist.hxx b/lotuswordpro/source/filter/xfilter/xflist.hxx
index 058fb1b..5ee7a5b 100644
--- a/lotuswordpro/source/filter/xfilter/xflist.hxx
+++ b/lotuswordpro/source/filter/xfilter/xflist.hxx
@@ -85,7 +85,7 @@ public:
/**
* @descr Set whether to continue to number list.
*/
- void SetContinueNumber(bool bContinueNumber=false);
+ void SetContinueNumber(bool bContinueNumber);
/**
* @descr Output list object.
diff --git a/lotuswordpro/source/filter/xfilter/xfliststyle.hxx b/lotuswordpro/source/filter/xfilter/xfliststyle.hxx
index e145f17..6f6b33a 100644
--- a/lotuswordpro/source/filter/xfilter/xfliststyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfliststyle.hxx
@@ -200,12 +200,12 @@ public:
void SetListBullet(sal_Int32 level,
OUString const & bullet_char,
- const OUString& fontname = "",
- const OUString& prefix = "",
+ const OUString& fontname,
+ const OUString& prefix,
const OUString& suffix = ""
);
- void SetListNumber( sal_Int32 level, XFNumFmt& numFmt, sal_Int16 nStartValue = 1 );
+ void SetListNumber( sal_Int32 level, XFNumFmt& numFmt, sal_Int16 nStartValue );
virtual enumXFStyle GetStyleFamily() override
{
diff --git a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
index 0c6da3c..34c9975 100644
--- a/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx
@@ -82,7 +82,7 @@ public:
void SetSurfix(const OUString& surfix);
- void SetNegativeStyle(const OUString& prefix, const OUString& suffix, const XFColor& color=XFColor(255,0,0));
+ void SetNegativeStyle(const OUString& prefix, const OUString& suffix, const XFColor& color);
void SetNumberType(enumXFNumberType type);
diff --git a/lotuswordpro/source/filter/xfilter/xfpagemaster.hxx b/lotuswordpro/source/filter/xfilter/xfpagemaster.hxx
index a0c6cea..f61f491 100644
--- a/lotuswordpro/source/filter/xfilter/xfpagemaster.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfpagemaster.hxx
@@ -85,7 +85,7 @@ public:
void SetPageHeight(double height);
- void SetMargins(double left=-1, double right=-1,double top=-1, double bottom=-1);
+ void SetMargins(double left, double right=-1,double top=-1, double bottom=-1);
void SetPageUsage(enumXFPageUsage usage);
@@ -105,8 +105,8 @@ public:
void SetTextDir(enumXFTextDir dir);
- void SetFootNoteSeparator(enumXFAlignType align = enumXFAlignStart,
- double width = 0.05,
+ void SetFootNoteSeparator(enumXFAlignType align,
+ double width,
sal_Int32 lengthPercent = 25,
double spaceAbove = 0.1,
double spaceBelow = 0.1,
diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
index 1ca827c..3a41bf7 100644
--- a/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfparastyle.hxx
@@ -133,14 +133,14 @@ public:
between the border and the top of the text.
* @param indent value of the padding.
*/
- void SetPadding(double left, double right = -1, double top = -1, double bottom = -1);
+ void SetPadding(double left, double right, double top = -1, double bottom = -1);
/**
* @descr Set the Margins of the paragraph.
* @param -1: don't change.
other: set value.
*/
- void SetMargins(double left, double right=-1,double top=-1, double bottom=-1);
+ void SetMargins(double left, double right,double top=-1, double bottom=-1);
/**
* @descr Set alignment property of the paragraph.
@@ -170,7 +170,7 @@ public:
* @param nLength number of chars to be dropped.
* @param nLines line of which the dropped chars will occupy.
*/
- void SetDropCap(sal_Int16 nLength = 1,sal_Int16 nLines = 3,double fDistance = 0);
+ void SetDropCap(sal_Int16 nLength, sal_Int16 nLines, double fDistance = 0);
/**
* @descr Set line height of the paragraph.
@@ -199,7 +199,7 @@ public:
/**
* @descr Add a tab style.
*/
- void AddTabStyle(enumXFTab type, double len, sal_Unicode leader = '*', sal_Unicode delimiter='.');
+ void AddTabStyle(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter);
/**
* @descr for para style copy operator,sometimes you may need to override tab styles.
diff --git a/lotuswordpro/source/filter/xfilter/xftablestyle.hxx b/lotuswordpro/source/filter/xfilter/xftablestyle.hxx
index af8f96d..4365da2 100644
--- a/lotuswordpro/source/filter/xfilter/xftablestyle.hxx
+++ b/lotuswordpro/source/filter/xfilter/xftablestyle.hxx
@@ -79,7 +79,7 @@ public:
void SetAlign(enumXFAlignType eAlign, double offset = 0);
- void SetShadow(enumXFShadowPos pos, double offset = 0.18, XFColor color=XFColor(128,128,0) );
+ void SetShadow(enumXFShadowPos pos, double offset, XFColor color );
void SetBackColor(XFColor& color);
More information about the Libreoffice-commits
mailing list