From 9c4c20367dd5b74c4302f9bf71030c23c8c49144 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Wed, 25 Jan 2017 20:06:47 +0100 Subject: [PATCH] remove unused operators Change-Id: Ic35d2071e844235bb755226c55d1e4bbbda4876c Reviewed-on: https://gerrit.libreoffice.org/33555 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/filter/inc/namebuff.hxx | 26 +++----------------------- 1 file 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