diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 13:31:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 13:49:59 +0200 |
commit | ea5b48e9da1ea750cc4549f7cd76771800101ed2 (patch) | |
tree | ed73999eb1d9bb9cba008c3f69d1b229ccd73e2d /idl/inc | |
parent | 0980a6207dd57f6b64191dcc48cc9c2e987cf940 (diff) |
loplugin:unusedmethods unused return value in idl
Change-Id: I790fea8b88ca99d17de14f1e91081671422dd8db
Diffstat (limited to 'idl/inc')
-rw-r--r-- | idl/inc/basobj.hxx | 4 | ||||
-rw-r--r-- | idl/inc/bastype.hxx | 10 | ||||
-rw-r--r-- | idl/inc/database.hxx | 2 | ||||
-rw-r--r-- | idl/inc/hash.hxx | 4 |
4 files changed, 6 insertions, 14 deletions
diff --git a/idl/inc/basobj.hxx b/idl/inc/basobj.hxx index e3ad1e583585..0725e6d98d01 100644 --- a/idl/inc/basobj.hxx +++ b/idl/inc/basobj.hxx @@ -128,7 +128,7 @@ public: void Push( SvMetaObject * pObj ) { aList.push_back( pObj ); } - SvMetaObject * Pop() { return aList.pop_back(); } + void Pop() { aList.pop_back(); } SvMetaObject * Get( std::function<bool ( const SvMetaObject* )> isSvMetaObject ) { for( SvMetaObjectMemberList::reverse_iterator it = aList.rbegin(); it != aList.rend(); ++it ) @@ -200,7 +200,7 @@ public: SvMetaModule * GetModule() const; - const SvGlobalName &GetUUId() const; + void GetUUId() const; void SetModule( SvIdlDataBase & rBase ); virtual bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) override; diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index 04335fd0e42c..f31121a78cca 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -79,8 +79,8 @@ public: sal_uInt32 GetValue() const { return nValue; } void SetValue( sal_uInt32 nVal ) { nValue = nVal; } - bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ); - bool ReadSvIdl( SvIdlDataBase &, SvStringHashEntry * pName, + void ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ); + void ReadSvIdl( SvIdlDataBase &, SvStringHashEntry * pName, SvTokenStream & rInStm ); }; @@ -112,7 +112,7 @@ class SvHelpText : public SvString { public: SvHelpText() {} - bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ); + void ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ); }; @@ -139,10 +139,6 @@ public: return (r.nMajorVersion == nMajorVersion) && (r.nMinorVersion == nMinorVersion); } - bool operator != ( const SvVersion & r ) - { - return !(*this == r); - } bool ReadSvIdl( SvTokenStream & rInStm ); }; diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx index 3bf5e0c7a3f1..f7658b2a2ba5 100644 --- a/idl/inc/database.hxx +++ b/idl/inc/database.hxx @@ -126,7 +126,7 @@ public: SvMetaAttribute * SearchKnownAttr( const SvIdentifier& ); SvMetaClass * ReadKnownClass( SvTokenStream & rInStm ); void AddDepFile(OUString const& rFileName); - bool WriteDepFile(SvFileStream & rStream, OUString const& rTarget); + void WriteDepFile(SvFileStream & rStream, OUString const& rTarget); }; class SvIdlWorkingBase : public SvIdlDataBase diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx index 9a3374b20ce6..39fdf767ba0d 100644 --- a/idl/inc/hash.hxx +++ b/idl/inc/hash.hxx @@ -79,8 +79,6 @@ public: bool operator == ( const SvStringHashEntry & rRef ) { return nHashId == rRef.nHashId; } - bool operator != ( const SvStringHashEntry & rRef ) - { return ! operator == ( rRef ); } SvStringHashEntry & operator = ( const SvStringHashEntry & rRef ) { SvRefBase::operator=( rRef ); aName = rRef.aName; @@ -110,8 +108,6 @@ public: bool Insert( const OString& rStr, sal_uInt32 * pHash ); // insert string bool Test( const OString& rStr, sal_uInt32 * pHash ) const; // test of insert string SvStringHashEntry * Get ( sal_uInt32 nIndex ) const; // return pointer to string - SvStringHashEntry & operator []( sal_uInt32 nPos ) const - { return pEntries[ nPos ]; } }; #endif // INCLUDED_IDL_INC_HASH_HXX |