diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-02 11:09:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-07 10:24:54 +0200 |
commit | e4688a3d41265946007c6c9a5c5b5742078c74a3 (patch) | |
tree | d57cd9a10d8049f0d8b85f297d1fdead673e5439 /idl | |
parent | 82b71d4764c12eb173f6d98b94d6bbbc5d296d7e (diff) |
loplugin:staticmethods
Change-Id: Ibaad2adabecb878411fdd66383bca91f034477af
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/database.hxx | 4 | ||||
-rw-r--r-- | idl/inc/object.hxx | 10 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 4 | ||||
-rw-r--r-- | idl/source/prj/database.cxx | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx index 4fabd5fecbb9..4a7effb53a1c 100644 --- a/idl/inc/database.hxx +++ b/idl/inc/database.hxx @@ -108,10 +108,10 @@ public: SvMetaObjectMemberStack & GetStack() { return aContextStack; } void Write(const OString& rText); - void WriteError(const OString& rErrWrn, + static void WriteError(const OString& rErrWrn, const OString& rFileName, const OString& rErrorText, - sal_uLong nRow = 0, sal_uLong nColumn = 0 ) const; + sal_uLong nRow = 0, sal_uLong nColumn = 0 ); void WriteError( SvTokenStream & rInStm ); void SetError( const OString& rError, SvToken * pTok ); void Push( SvMetaObject * pObj ); diff --git a/idl/inc/object.hxx b/idl/inc/object.hxx index b0481a3ca796..1f0a0721f2c7 100644 --- a/idl/inc/object.hxx +++ b/idl/inc/object.hxx @@ -79,21 +79,21 @@ class SvMetaClass : public SvMetaType SvBOOL aAutomation; SvMetaClassRef xAutomationInterface; - bool TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm, + bool TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInStm, SvMetaAttribute & rAttr ) const; - void WriteSlotStubs( const OString& rShellName, + static void WriteSlotStubs( const OString& rShellName, SvSlotElementList & rSlotList, ByteStringList & rList, SvStream & rOutStm ); - sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase, + static sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase, SvSlotElementList & rSlotList, SvStream & rOutStm ); - sal_uInt16 WriteSlots( const OString& rShellName, sal_uInt16 nCount, + static sal_uInt16 WriteSlots( const OString& rShellName, sal_uInt16 nCount, SvSlotElementList & rSlotList, SvIdlDataBase & rBase, SvStream & rOutStm ); - void InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>& rSuperList, + void InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>& rSuperList, SvMetaClassList & rClassList, const OString& rPrefix, SvIdlDataBase& rBase ); diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index e0a895399515..affaf4a04b32 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -289,14 +289,14 @@ void SvMetaSlot::ReadAttributesSvIdl( SvIdlDataBase & rBase, bOk |= aDisableFlags.ReadSvIdl( SvHash_DisableFlags(), rInStm ); if( aGet.ReadSvIdl( SvHash_Get(), rInStm ) ) { - rBase.WriteError( "warning", OUStringToOString(rInStm.GetFileName(), RTL_TEXTENCODING_UTF8), + SvIdlDataBase::WriteError( "warning", OUStringToOString(rInStm.GetFileName(), RTL_TEXTENCODING_UTF8), "<Get> old style, use Readonly", rInStm.GetToken()->GetLine(), rInStm.GetToken()->GetColumn() ); } if( aSet.ReadSvIdl( SvHash_Set(), rInStm ) ) { - rBase.WriteError( "warning", OUStringToOString(rInStm.GetFileName(), RTL_TEXTENCODING_UTF8), + SvIdlDataBase::WriteError( "warning", OUStringToOString(rInStm.GetFileName(), RTL_TEXTENCODING_UTF8), "<Set> old style, use method declaration", rInStm.GetToken()->GetLine(), rInStm.GetToken()->GetColumn() ); diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 98d02993bb73..8cdf10d34213 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -460,7 +460,7 @@ void SvIdlDataBase::Write(const OString& rText) void SvIdlDataBase::WriteError( const OString& rErrWrn, const OString& rFileName, const OString& rErrorText, - sal_uLong nRow, sal_uLong nColumn ) const + sal_uLong nRow, sal_uLong nColumn ) { // error treatment fprintf( stderr, "\n%s --- %s: ( %ld, %ld )\n", |