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