Debugger: Simplify display of std::shared_ptr<Foo>

Change-Id: Ie2145903f9ac303d88455cfd609f55240aa76a67
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-09 22:45:50 +01:00
parent 6d72796ec0
commit 9ce8bcd114
3 changed files with 12 additions and 4 deletions

View File

@@ -818,6 +818,11 @@ QString simplifySTLType(const QString &typeIn)
&& type.endsWith(QLatin1String(">::element_type")))
type = type.mid(18, type.size() - 33);
// std::shared_ptr<...>::element_type
if (type.startsWith(QLatin1String("std::shared_ptr<"))
&& type.endsWith(QLatin1String(">::element_type")))
type = type.mid(16, type.size() - 31);
// std::ifstream
QRegExp ifstreamRE(QLatin1String("std::basic_ifstream<char,\\s*std::char_traits<char>\\s*>"));
ifstreamRE.setMinimal(true);