diff options
Diffstat (limited to 'compat/tr.cpp')
-rw-r--r-- | compat/tr.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compat/tr.cpp b/compat/tr.cpp index 7cff52a9..72e02527 100644 --- a/compat/tr.cpp +++ b/compat/tr.cpp @@ -5,13 +5,9 @@ TR::TR() : QObject(nullptr) {} TR::TR(const TR&) : QObject(nullptr) {} -TR& TR::operator=(const TR& other) +TR& TR::operator=(const TR&) { - if (this == &other) - return *this; - - this->~TR(); - return *new (this) TR; + return *this; } TR::~TR() {} |