From edc189dbfac35d9a587ec50d0f382bb66444eca8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Mar 2015 13:32:08 +0200 Subject: loplugin:staticfunction Change-Id: I89f5984d73e7d42269189dc1d1bc2d59e5ab193f --- tools/source/fsys/wldcrd.cxx | 2 +- tools/source/inet/inetmsg.cxx | 4 ++-- tools/source/ref/errinf.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tools') 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; } -- cgit