From 5d7cebdadc991a23195a3519c1e9c038cb4f2290 Mon Sep 17 00:00:00 2001 From: Wladimir J. van der Laan Date: Sat, 24 Mar 2012 21:13:48 +0100 Subject: [PATCH] move translation function _ to qtui.h/noui.h instead of util.h --- src/noui.h | 5 +++++ src/util.h | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/noui.h b/src/noui.h index e91cca3..4010ec3 100644 --- a/src/noui.h +++ b/src/noui.h @@ -66,4 +66,9 @@ inline void InitMessage(const std::string &message) { } +inline const char* _(const char* psz) +{ + return psz; +} + #endif diff --git a/src/util.h b/src/util.h index 0b73549..e4cf83f 100644 --- a/src/util.h +++ b/src/util.h @@ -95,13 +95,6 @@ inline void Sleep(int64 n) } #endif -#if !defined(QT_GUI) -inline const char* _(const char* psz) -{ - return psz; -} -#endif - -- 1.7.1