aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-03-24 21:13:48 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-04-04 09:35:01 +0200
commit5d7cebdadc991a23195a3519c1e9c038cb4f2290 (patch)
tree6745cc91af29ad9a7bffc25735dee6d7d904b704
parent6cb6d623479c5dd42d91de7a4d391078d0800e54 (diff)
move translation function _ to qtui.h/noui.h instead of util.h
-rw-r--r--src/noui.h5
-rw-r--r--src/util.h7
2 files changed, 5 insertions, 7 deletions
diff --git a/src/noui.h b/src/noui.h
index e91cca3cfd..4010ec3c7c 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 0b73549dc7..e4cf83f433 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
-