0032352: Coding Rules - clean up code from compatibility hacks with pre-C++11 compilers
[occt.git] / src / TCollection / TCollection_AsciiString.hxx
index e839451..8f277b1 100644 (file)
@@ -76,7 +76,6 @@ public:
   //! Initializes a AsciiString with another AsciiString.
   Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   TCollection_AsciiString (TCollection_AsciiString&& theOther)
   : mystring (theOther.mystring),
@@ -85,7 +84,6 @@ public:
     theOther.mystring = NULL;
     theOther.mylength = 0;
   }
-#endif
   
   //! Initializes a AsciiString with copy of another AsciiString
   //! concatenated with the message character.
@@ -280,10 +278,8 @@ void operator = (const TCollection_AsciiString& fromwhere)
   //! Exchange the data of two strings (without reallocating memory).
   Standard_EXPORT void Swap (TCollection_AsciiString& theOther);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator
   TCollection_AsciiString& operator= (TCollection_AsciiString&& theOther) { Swap (theOther); return *this; }
-#endif
 
   //! Frees memory allocated by AsciiString.
   Standard_EXPORT ~TCollection_AsciiString();