diff options
author | hjk <[email protected]> | 2014-01-08 17:48:53 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2014-01-08 18:17:10 +0100 |
commit | b72085ea8597f7653cca6d894be2a543ae19789e (patch) | |
tree | 796a496eadd4a3cf6de01f9c329c52cc594afb7e /src/plugins/debugger/debuggerprotocol.cpp | |
parent | 8361ade08d04cf222fabf9a93d7e6f8f9ca87684 (diff) |
Debugger: Remove boost::shared_ptr<>::element_type noise from display
Change-Id: Ic520cadc41463e679b324028b6126ad3f4138c34
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerprotocol.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index 5423c81f036..7a79cec50ef 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -813,6 +813,11 @@ QString simplifySTLType(const QString &typeIn) type.replace(QLatin1Char('*'), QLatin1Char('@')); for (int i = 0; i < 10; ++i) { + // boost::shared_ptr<...>::element_type + if (type.startsWith(QLatin1String("boost::shared_ptr<")) + && type.endsWith(QLatin1String(">::element_type"))) + type = type.mid(18, type.size() - 33); + // std::ifstream QRegExp ifstreamRE(QLatin1String("std::basic_ifstream<char,\\s*std::char_traits<char>\\s*>")); ifstreamRE.setMinimal(true); |