Selaa lähdekoodia

Correct assigment interface for StrPair

Assigment operator takes non-const reference when const reference is the norm.
Bo Rydberg 7 vuotta sitten
vanhempi
commit
65c1b86582
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -190,7 +190,7 @@ private:
     char*   _end;
     char*   _end;
 
 
     StrPair( const StrPair& other );	// not supported
     StrPair( const StrPair& other );	// not supported
-    void operator=( StrPair& other );	// not supported, use TransferTo()
+    void operator=( const StrPair& other );	// not supported, use TransferTo()
 };
 };