summaryrefslogtreecommitdiffhomepage
path: root/compat/tr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/tr.hpp')
-rw-r--r--compat/tr.hpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/compat/tr.hpp b/compat/tr.hpp
index 6af45161..4504f791 100644
--- a/compat/tr.hpp
+++ b/compat/tr.hpp
@@ -1,18 +1,14 @@
#pragma once
#include <QObject>
-#include "export.hpp"
// The class does nothing except provide a fake assignment operator for QObject
// It's meant to be used inside classes that need i18n support but are returned by value.
-class OTR_COMPAT_EXPORT TR : public QObject
+struct TR : QObject
{
- Q_OBJECT
+ TR() = default;
+ TR(const TR&) {}
-public:
- TR();
- TR(const TR&);
-
- TR& operator=(const TR& other);
+ TR& operator=(const TR&) { return *this; }
};