diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-06 21:04:57 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-11-06 21:58:01 (GMT) |
commit | 44cc160733a70f5dc613faed2051005de7e48f04 (patch) | |
tree | 214a5d22918c752af5aff3ddf2dde07e6ced2060 /tools/linguist/shared/translatormessage.cpp | |
parent | d4f08b8f15607ac2859c079e94bf8d02a9b8380c (diff) | |
download | Qt-44cc160733a70f5dc613faed2051005de7e48f04.zip Qt-44cc160733a70f5dc613faed2051005de7e48f04.tar.gz Qt-44cc160733a70f5dc613faed2051005de7e48f04.tar.bz2 |
kill TranslatorMessage::operator==() and qHash(TranslatorMessage)
preparation work ...
Diffstat (limited to 'tools/linguist/shared/translatormessage.cpp')
-rw-r--r-- | tools/linguist/shared/translatormessage.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/linguist/shared/translatormessage.cpp b/tools/linguist/shared/translatormessage.cpp index 876b129..5151ebd 100644 --- a/tools/linguist/shared/translatormessage.cpp +++ b/tools/linguist/shared/translatormessage.cpp @@ -143,25 +143,6 @@ bool TranslatorMessage::needs8Bit() const } -bool TranslatorMessage::operator==(const TranslatorMessage& m) const -{ - // Special treatment for context comments (empty source). - return (m_context == m.m_context) - && m_sourcetext == m.m_sourcetext - && m_id == m.m_id - && (m_sourcetext.isEmpty() || m_comment == m.m_comment); -} - - -int qHash(const TranslatorMessage &msg) -{ - return - qHash(msg.context()) ^ - qHash(msg.sourceText()) ^ - qHash(msg.comment()) ^ - qHash(msg.id()); -} - bool TranslatorMessage::hasExtra(const QString &key) const { return m_extra.contains(key); |