summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-25 19:32:13 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-27 11:08:31 (GMT)
commit6ac130466400197b8977f60d14ed96abfb0d2172 (patch)
tree49379f43a3ad6cd2df701da98ca30ce6b924f5ad /tools
parentddc1ff555604543cc2a3b1b797ff61b67abb0fe4 (diff)
downloadQt-6ac130466400197b8977f60d14ed96abfb0d2172.zip
Qt-6ac130466400197b8977f60d14ed96abfb0d2172.tar.gz
Qt-6ac130466400197b8977f60d14ed96abfb0d2172.tar.bz2
beautify / micro-optimize
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/shared/translator.cpp7
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);
}
}
}