[Libreoffice-commits] core.git: sc/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Thu Jan 26 06:27:48 UTC 2017


 sc/source/filter/inc/namebuff.hxx |   26 +++-----------------------
 1 file changed, 3 insertions(+), 23 deletions(-)

New commits:
commit 9c4c20367dd5b74c4302f9bf71030c23c8c49144
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Wed Jan 25 20:06:47 2017 +0100

    remove unused operators
    
    Change-Id: Ic35d2071e844235bb755226c55d1e4bbbda4876c
    Reviewed-on: https://gerrit.libreoffice.org/33555
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/filter/inc/namebuff.hxx b/sc/source/filter/inc/namebuff.hxx
index 18e8a75..13233c7 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


More information about the Libreoffice-commits mailing list