From dd119e14d0b53491d6b1578f913ad3edfe35c9a5 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 10 Feb 2012 09:41:50 +0100 Subject: Fix qlogging autotest for clang Change-Id: Iac82c4847554534174b5419ec78319c9ac381628 Reviewed-by: Bradley T. Hughes Reviewed-by: Olivier Goffart --- src/corelib/global/qlogging.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/corelib') 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) { -- cgit v1.2.3