diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-12-04 19:40:47 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-07 19:48:49 +0100 |
commit | beb48e9c9139a88238e9a2893af6aa83c7f8a289 (patch) | |
tree | eea2d7b56b28de5414f163ce86bb863b0e049d4f | |
parent | 284e671c064a5ff942b668f982c3b061bd3187ee (diff) | |
download | qttools-beb48e9c9139a88238e9a2893af6aa83c7f8a289.tar.gz |
prefer stable reference into container
this currently does not matter, as we are using a container which
allocates each element separately, but this may change at some point.
also, it's just cleaner this way.
Change-Id: Idf814e0fa70bb33f49d8afd901517e3d096a80fc
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r-- | src/linguist/lupdate/cpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/lupdate/cpp.cpp b/src/linguist/lupdate/cpp.cpp index c9cb34c09..cb13559e9 100644 --- a/src/linguist/lupdate/cpp.cpp +++ b/src/linguist/lupdate/cpp.cpp @@ -1811,8 +1811,8 @@ void CppParser::parseInternal(ConversionData &cd, const QStringList &includeStac // fullName is already the resolved name we actually want. // As we do no resolution here, we'll collect useless usings of data // members and methods as well. This is no big deal. - HashString &ns = fullName.last(); fullName.append(HashString(QString())); // Mark as unresolved + const HashString &ns = *(fullName.constEnd() - 2); modifyNamespace(&namespaces)->aliases[ns] = fullName; } break; |