code cleanup; fix move ctors and assignment

This commit is contained in:
Günter Obiltschnig
2020-01-21 17:52:43 +01:00
parent de52e23d12
commit 18adb1e43b
20 changed files with 327 additions and 188 deletions

View File

@@ -73,16 +73,16 @@ public:
Array(const Array& copy);
/// Creates an Array by copying another one.
Array(Array&& other);
Array(Array&& other) noexcept;
/// Move constructor
Array& operator=(Array&& other);
/// Move assignment operator.
Array& operator=(const Array& other);
Array& operator = (const Array& other);
/// Assignment operator.
virtual ~Array();
Array& operator = (Array&& other) noexcept;
/// Move assignment operator.
~Array();
/// Destroys the Array.
void setEscapeUnicode(bool escape = true);

View File

@@ -84,18 +84,18 @@ public:
/// Struct is not copied to keep the operation as
/// efficient as possible (when needed, it will be generated upon request).
Object(Object&& other);
Object(Object&& other) noexcept;
/// Move constructor
Object &operator =(Object &&other);
// Move asignment operator
virtual ~Object();
~Object();
/// Destroys the Object.
Object &operator =(const Object &other);
Object &operator = (const Object &other);
// Assignment operator
Object &operator = (Object &&other) noexcept;
// Move asignment operator
void setEscapeUnicode(bool escape = true);
/// Sets the flag for escaping unicode.