diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-25 20:06:47 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-26 06:27:08 +0000 |
commit | 9c4c20367dd5b74c4302f9bf71030c23c8c49144 (patch) | |
tree | 229c10728af3c96dfb27563470e2acce0f46053b /sc | |
parent | 2640ec898a043c42f62a46f8381cb43cb33d91c2 (diff) |
remove unused operators
Change-Id: Ic35d2071e844235bb755226c55d1e4bbbda4876c
Reviewed-on: https://gerrit.libreoffice.org/33555
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/inc/namebuff.hxx | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/sc/source/filter/inc/namebuff.hxx b/sc/source/filter/inc/namebuff.hxx index 18e8a75ec5da..13233c77e1ad 100644 --- a/sc/source/filter/inc/namebuff.hxx +++ b/sc/source/filter/inc/namebuff.hxx @@ -43,33 +43,13 @@ private: static sal_uInt32 MakeHashCode( const OUString& ); public: inline StringHashEntry( const OUString& ); - inline void operator =( const sal_Char* ); - inline void operator =( const OUString& ); - inline void operator =( const StringHashEntry& ); inline bool operator ==( const StringHashEntry& ) const; }; -inline StringHashEntry::StringHashEntry( const OUString& r ) : aString( r ) +inline StringHashEntry::StringHashEntry( const OUString& r ) + : aString( r ) + , nHash( MakeHashCode(r) ) { - nHash = MakeHashCode( r ); -} - -inline void StringHashEntry::operator =( const sal_Char* p ) -{ - aString = OUString(p, strlen(p), RTL_TEXTENCODING_ASCII_US); - nHash = MakeHashCode( aString ); -} - -inline void StringHashEntry::operator =( const OUString& r ) -{ - aString = r; - nHash = MakeHashCode( r ); -} - -inline void StringHashEntry::operator =( const StringHashEntry& r ) -{ - nHash = r.nHash; - aString = r.aString; } inline bool StringHashEntry::operator ==( const StringHashEntry& r ) const |