소스 검색

Correct assigment interface for StrPair

Assigment operator takes non-const reference when const reference is the norm.
Bo Rydberg 7 년 전
부모
커밋
65c1b86582
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

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