Kaydet (Commit) b0e18a68 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unuseddefaultparam in forms

Change-Id: I5a2b50163acfda3878fe5625a605e3437a7cc700
üst 7607b608
......@@ -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,
......
......@@ -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 );
......
......@@ -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 );
......
......@@ -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
......
......@@ -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;
};
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment