summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-05 11:34:43 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-05 11:51:28 +0000
commitdbe0b5aa9dc016498c623e76babcc486894d4235 (patch)
tree1e0fca749c633517410a6e2712a2e2b5504f1269
parentloplugin:countusersofdefaultparams in oox..sd (diff)
downloadcore-dbe0b5aa9dc016498c623e76babcc486894d4235.tar.gz
core-dbe0b5aa9dc016498c623e76babcc486894d4235.zip
loplugin:countusersofdefaultparams in framework..lotuswordpro
Change-Id: I9833d85eb6543e996b0f357657c53b1c076ecde4 Reviewed-on: https://gerrit.libreoffice.org/27898 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--framework/inc/xml/menudocumenthandler.hxx2
-rw-r--r--hwpfilter/source/hpara.h2
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx2
-rw-r--r--i18npool/source/search/levdis.hxx2
-rw-r--r--idl/inc/database.hxx2
-rw-r--r--l10ntools/inc/export.hxx2
-rw-r--r--l10ntools/inc/xmlparse.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.hxx2
-rw-r--r--lotuswordpro/source/filter/lwplayout.hxx2
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcell.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcellstyle.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawstyle.hxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xfentry.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xffont.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xffooterstyle.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xffootnoteconfig.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfframestyle.hxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfheaderstyle.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfindex.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xflist.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfliststyle.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfnumberstyle.hxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfpagemaster.hxx6
-rw-r--r--lotuswordpro/source/filter/xfilter/xfparastyle.hxx8
-rw-r--r--lotuswordpro/source/filter/xfilter/xftablestyle.hxx2
26 files changed, 41 insertions, 41 deletions
diff --git a/framework/inc/xml/menudocumenthandler.hxx b/framework/inc/xml/menudocumenthandler.hxx
index 58df5bb07c2b..ce51a1d2ccc4 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 28e67dc456b8..afb9f5a50b91 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 690bfebf204f..13ff853018d1 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 cf7561d013b9..ec82df03335b 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 eb43e5f54281..0ed28a65c0bb 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 4984800b8a50..1273efdcd92d 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 8d8fe9f458d9..f3085a51603b 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 e39606098b65..505e0cb8fe5b 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 3dd9a0fbe725..e2db72f0a505 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 8074c3bbc7a3..8b64f2f777c8 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 5d7b0c9999eb..eba8bac66558 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 0131d0c8b46b..c85ce0689b15 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 0681be67e98c..d8a32aa8f2c7 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 c7c8fc224d07..dc904f944b43 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 99d6095b8d48..3808e76aa790 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 c8cb895e13e9..dfc82da7517c 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 6c1c5afbe12b..da6a6615ef0b 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 727fad5eb1fd..8e5edcee774b 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 c08f0f5cb85b..333e3aff525d 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 aa341783a5f9..71276172e6ac 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 058fb1b127db..5ee7a5bb3d52 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 e145f175f6aa..6f6b33ae0610 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 0c6da3c488fe..34c99753e110 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 a0c6cea22688..f61f4910e761 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 1ca827ce42e3..3a41bf76845d 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 af8f96d34585..4365da25f8a0 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);