1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "tr.hpp" TR::TR() : QObject(nullptr) {} TR::TR(const TR&) : QObject(nullptr) {} TR& TR::operator=(const TR& other) { if (this == &other) return *this; this->~TR(); return *new (this) TR; } TR::~TR() {}