summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-30 13:32:08 +0200
committerNoel Grandin <noel@peralex.com>2015-04-01 10:37:02 +0200
commitedc189dbfac35d9a587ec50d0f382bb66444eca8 (patch)
tree20b6b40033f29410f8545ce83fb574e4ad75e709 /tools
parentd677e27cfa700971cba3dafa7b476a266227a547 (diff)
loplugin:staticfunction
Change-Id: I89f5984d73e7d42269189dc1d1bc2d59e5ab193f
Diffstat (limited to 'tools')
-rw-r--r--tools/source/fsys/wldcrd.cxx2
-rw-r--r--tools/source/inet/inetmsg.cxx4
-rw-r--r--tools/source/ref/errinf.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/source/fsys/wldcrd.cxx b/tools/source/fsys/wldcrd.cxx
index 66425bc910e4..4adfb7c3850e 100644
--- a/tools/source/fsys/wldcrd.cxx
+++ b/tools/source/fsys/wldcrd.cxx
@@ -25,7 +25,7 @@
* '?' in pWild mean match exactly one character.
*
*/
-bool WildCard::ImpMatch( const char *pWild, const char *pStr ) const
+bool WildCard::ImpMatch( const char *pWild, const char *pStr )
{
int pos=0;
int flag=0;
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index 1198b62d24a8..cbcc7bea9e30 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -597,7 +597,7 @@ void INetMIMEMessage::CopyImp (const INetMIMEMessage& rMsg)
if (pChild->pParent == &rMsg)
{
- pChild = pChild->CreateMessage (*pChild);
+ pChild = INetMIMEMessage::CreateMessage (*pChild);
pChild->pParent = this;
}
aChildren.push_back( pChild );
@@ -607,7 +607,7 @@ void INetMIMEMessage::CopyImp (const INetMIMEMessage& rMsg)
INetMIMEMessage *INetMIMEMessage::CreateMessage (
const INetMIMEMessage& rMsg) const
{
- return (new INetMIMEMessage (rMsg));
+ return new INetMIMEMessage (rMsg);
}
// Header Field Parser
diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx
index 3ab7252def53..0ddbafdbad66 100644
--- a/tools/source/ref/errinf.cxx
+++ b/tools/source/ref/errinf.cxx
@@ -51,7 +51,7 @@ class EDcr_Impl
sal_uInt16 nMask;
void RegisterEDcr(DynamicErrorInfo *);
- void UnRegisterEDcr(DynamicErrorInfo *);
+ static void UnRegisterEDcr(DynamicErrorInfo *);
static ErrorInfo *GetDynamicErrorInfo(sal_uIntPtr lId);
friend class DynamicErrorInfo;
@@ -143,7 +143,7 @@ DynamicErrorInfo::DynamicErrorInfo(sal_uIntPtr lArgUserId, sal_uInt16 nMask)
DynamicErrorInfo::~DynamicErrorInfo()
{
- pImpl->UnRegisterEDcr(this);
+ EDcr_Impl::UnRegisterEDcr(this);
delete pImpl;
}