Debugger: Remove boost::shared_ptr<>::element_type noise from display

Change-Id: Ic520cadc41463e679b324028b6126ad3f4138c34
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-08 17:48:53 +01:00
parent 8361ade08d
commit b72085ea85
3 changed files with 20 additions and 2 deletions

View File

@@ -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);