diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-03 12:26:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-05 03:23:13 +0200 |
commit | eb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (patch) | |
tree | b15b4ab34600e9c5d5da17eac33ea687167bbfc7 /compat/tr.cpp | |
parent | 22a853b388597e9549125df69508c1c38706dd1d (diff) |
i18n: provide for non-QObject classes
See compat/tr.hpp for comment.
Diffstat (limited to 'compat/tr.cpp')
-rw-r--r-- | compat/tr.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/compat/tr.cpp b/compat/tr.cpp new file mode 100644 index 00000000..b3349435 --- /dev/null +++ b/compat/tr.cpp @@ -0,0 +1,17 @@ +#include "tr.hpp" + + +TR::TR() {} + +TR::TR(const TR&) {} + +TR&TR::operator=(const TR& other) +{ + if (this == &other) + return *this; + + TR::~TR(); + return *new (this) TR; +} + +TR::~TR() {} |