From 753013079c2e2d2db82dd096c642c5140f1de772 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Mar 2019 08:35:21 +0100 Subject: compat/tr: make header-only for the api header --- compat/tr.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'compat/tr.hpp') 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 -#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; } }; -- cgit v1.2.3