diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-25 19:32:13 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-27 11:08:31 (GMT) |
commit | 6ac130466400197b8977f60d14ed96abfb0d2172 (patch) | |
tree | 49379f43a3ad6cd2df701da98ca30ce6b924f5ad /tools | |
parent | ddc1ff555604543cc2a3b1b797ff61b67abb0fe4 (diff) | |
download | Qt-6ac130466400197b8977f60d14ed96abfb0d2172.zip Qt-6ac130466400197b8977f60d14ed96abfb0d2172.tar.gz Qt-6ac130466400197b8977f60d14ed96abfb0d2172.tar.bz2 |
beautify / micro-optimize
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/shared/translator.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/linguist/shared/translator.cpp b/tools/linguist/shared/translator.cpp index 3b5e8f3..6ae8059 100644 --- a/tools/linguist/shared/translator.cpp +++ b/tools/linguist/shared/translator.cpp @@ -105,13 +105,14 @@ void Translator::extend(const TranslatorMessage &msg) if (index == -1) { m_messages.append(msg); } else { - m_messages[index].addReferenceUniq(msg.fileName(), msg.lineNumber()); + TranslatorMessage &emsg = m_messages[index]; + emsg.addReferenceUniq(msg.fileName(), msg.lineNumber()); if (!msg.extraComment().isEmpty()) { - QString cmt = m_messages[index].extraComment(); + QString cmt = emsg.extraComment(); if (!cmt.isEmpty()) cmt.append(QLatin1String("\n----------\n")); cmt.append(msg.extraComment()); - m_messages[index].setExtraComment(cmt); + emsg.setExtraComment(cmt); } } } |