summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-01 15:32:24 +0200
committerNoel Grandin <noel@peralex.com>2016-03-02 07:57:38 +0200
commitb0e18a68c86733b6d88a0c990d4fa4d938680727 (patch)
tree16713736a675fc225a8807de379e61b1a3d5b7f4 /forms
parent7607b608d626267011d6cd00080cb608b0badf97 (diff)
loplugin:unuseddefaultparam in forms
Change-Id: I5a2b50163acfda3878fe5625a605e3437a7cc700
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/EventThread.cxx4
-rw-r--r--forms/source/component/EventThread.hxx2
-rw-r--r--forms/source/richtext/richtextcontrol.cxx4
-rw-r--r--forms/source/xforms/computedexpression.cxx4
-rw-r--r--forms/source/xforms/computedexpression.hxx2
-rw-r--r--forms/source/xforms/xpathlib/xpathlib.cxx4
6 files changed, 10 insertions, 10 deletions
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx
index 7de4e876694b..8e4cdfaa0d0f 100644
--- a/forms/source/component/EventThread.cxx
+++ b/forms/source/component/EventThread.cxx
@@ -110,10 +110,10 @@ void OComponentEventThread::disposing( const EventObject& evt ) throw ( css::uno
}
}
-void OComponentEventThread::addEvent( const EventObject* _pEvt, bool bFlag )
+void OComponentEventThread::addEvent( const EventObject* _pEvt )
{
Reference<XControl> xTmp;
- addEvent( _pEvt, xTmp, bFlag );
+ addEvent( _pEvt, xTmp );
}
void OComponentEventThread::addEvent( const EventObject* _pEvt,
diff --git a/forms/source/component/EventThread.hxx b/forms/source/component/EventThread.hxx
index 9b8cc8bcddaf..7934fb37078b 100644
--- a/forms/source/component/EventThread.hxx
+++ b/forms/source/component/EventThread.hxx
@@ -89,7 +89,7 @@ public:
explicit OComponentEventThread(::cppu::OComponentHelper* pCompImpl);
virtual ~OComponentEventThread();
- void addEvent( const css::lang::EventObject* _pEvt, bool bFlag = false );
+ void addEvent( const css::lang::EventObject* _pEvt );
void addEvent( const css::lang::EventObject* _pEvt, const css::uno::Reference< css::awt::XControl>& rControl,
bool bFlag = false );
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index b3830c583a33..e3bfef6572e3 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -116,9 +116,9 @@ namespace frm
}
- static WinBits getWinBits( const Reference< XControlModel >& _rxModel, WinBits nBaseBits = 0 )
+ static WinBits getWinBits( const Reference< XControlModel >& _rxModel )
{
- WinBits nBits = nBaseBits;
+ WinBits nBits = 0;
try
{
Reference< XPropertySet > xProps( _rxModel, UNO_QUERY );
diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx
index 31b9aaf389b2..03aae7b9ea92 100644
--- a/forms/source/xforms/computedexpression.cxx
+++ b/forms/source/xforms/computedexpression.cxx
@@ -153,9 +153,9 @@ void ComputedExpression::clear()
}
-OUString ComputedExpression::getString( const OUString& rDefault ) const
+OUString ComputedExpression::getString() const
{
- return mxResult.is() ? mxResult->getString() : rDefault;
+ return mxResult.is() ? mxResult->getString() : OUString();
}
bool ComputedExpression::getBool( bool bDefault ) const
diff --git a/forms/source/xforms/computedexpression.hxx b/forms/source/xforms/computedexpression.hxx
index 1aa4ffc96111..169cd6606077 100644
--- a/forms/source/xforms/computedexpression.hxx
+++ b/forms/source/xforms/computedexpression.hxx
@@ -113,7 +113,7 @@ public:
// must call evaluate to ensure current results.)
css::uno::Reference<css::xml::xpath::XXPathObject> getXPath() const { return mxResult;}
bool getBool( bool bDefault = false ) const;
- OUString getString( const OUString& rDefault = OUString() ) const;
+ OUString getString() const;
};
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index fe68cd93a845..43ac7162ae50 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -232,7 +232,7 @@ void xforms_propertyFunction(xmlXPathParserContextPtr ctxt, int nargs)
// Date and Time Functions
-static OString makeDateTimeString (const DateTime& aDateTime, bool bUTC = true)
+static OString makeDateTimeString (const DateTime& aDateTime)
{
OStringBuffer aDateTimeString;
aDateTimeString.append((sal_Int32)aDateTime.GetYear());
@@ -251,7 +251,7 @@ static OString makeDateTimeString (const DateTime& aDateTime, bool bUTC = true)
aDateTimeString.append(":");
if (aDateTime.GetSec()<10) aDateTimeString.append("0");
aDateTimeString.append((sal_Int32)aDateTime.GetSec());
- if (bUTC) aDateTimeString.append("Z");
+ aDateTimeString.append("Z");
return aDateTimeString.makeStringAndClear();
}