summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared/translatormessage.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-06 21:14:16 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-06 21:58:01 (GMT)
commitd4f08b8f15607ac2859c079e94bf8d02a9b8380c (patch)
treec57c37ae148bffde5bddfabf085e8a8c7e8a8893 /tools/linguist/shared/translatormessage.h
parent1bf836526332626825c21e7e62305d2019c65701 (diff)
downloadQt-d4f08b8f15607ac2859c079e94bf8d02a9b8380c.zip
Qt-d4f08b8f15607ac2859c079e94bf8d02a9b8380c.tar.gz
Qt-d4f08b8f15607ac2859c079e94bf8d02a9b8380c.tar.bz2
eliminate TranslatorMessagePtr from the Translator api
Diffstat (limited to 'tools/linguist/shared/translatormessage.h')
-rw-r--r--tools/linguist/shared/translatormessage.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/tools/linguist/shared/translatormessage.h b/tools/linguist/shared/translatormessage.h
index fb3cc4b..2eb6e5e 100644
--- a/tools/linguist/shared/translatormessage.h
+++ b/tools/linguist/shared/translatormessage.h
@@ -178,32 +178,6 @@ Q_DECLARE_TYPEINFO(TranslatorMessage, Q_MOVABLE_TYPE);
int qHash(const TranslatorMessage &msg);
-struct TranslatorMessagePtr {
- TranslatorMessagePtr(const TranslatorMessage &tm)
- {
- ptr = &tm;
- }
-
- inline const TranslatorMessage *operator->() const
- {
- return ptr;
- }
-
- const TranslatorMessage *ptr;
-};
-
-Q_DECLARE_TYPEINFO(TranslatorMessagePtr, Q_MOVABLE_TYPE);
-
-inline int qHash(TranslatorMessagePtr tmp)
-{
- return qHash(*tmp.ptr);
-}
-
-inline bool operator==(TranslatorMessagePtr tmp1, TranslatorMessagePtr tmp2)
-{
- return *tmp1.ptr == *tmp2.ptr;
-}
-
QT_END_NAMESPACE
#endif // QT_NO_TRANSLATION