CdbExt: Remove unneeded add symbol for shared pointer.

Change-Id: I88da67b3c330e04befcdd0bc9074d28f400f199c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2016-04-15 12:49:48 +02:00
parent 84d7852c06
commit f18d32ee14

View File

@@ -2852,16 +2852,14 @@ static inline bool dumpQSharedPointer(const SymbolGroupValue &v, std::wostream &
str << L"(null)";
return true;
}
std::ostringstream namestr;
namestr << "*(" << SymbolGroupValue::stripClassPrefixes(value.type()) << ")("
<< std::showbase << std::hex << value.pointerValue() << ')';
SymbolGroupNode *valueNode
= v.node()->symbolGroup()->addSymbol(v.module(), namestr.str(), std::string(), &std::string());
if (!valueNode)
return false;
str << valueNode->simpleDumpValue(v.context(), encoding);
return true;
if (knownType(value.type(), KnownTypeAutoStripPointer | KnownTypeHasClassPrefix)
& KT_HasSimpleDumper) {
str << value.node()->simpleDumpValue(v.context(), encoding);
return true;
}
return false;
}
}