diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-02-10 09:41:50 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-10 15:28:22 +0100 |
commit | dd119e14d0b53491d6b1578f913ad3edfe35c9a5 (patch) | |
tree | d4422243c38ff1c97829ccc577e930ccf0c73152 /src/corelib/global/qlogging.cpp | |
parent | 8f7716c32cfc801b9dfed62126773fc7e4a39e01 (diff) |
Fix qlogging autotest for clang
Change-Id: Iac82c4847554534174b5419ec78319c9ac381628
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r-- | src/corelib/global/qlogging.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 39b3205571..164b846074 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -204,6 +204,11 @@ Q_AUTOTEST_EXPORT QByteArray qCleanupFuncinfo(QByteArray info) } info = info.mid(pos + 1); + // remove trailing '*', '&' that are part of the return argument + while ((info.at(0) == '*') + || (info.at(0) == '&')) + info = info.mid(1); + // we have the full function name now. // clean up the templates while ((pos = info.lastIndexOf('>')) != -1) { |