forked from qt-creator/qt-creator
CdbExt: Remove unneeded add symbol for shared pointer.
Change-Id: I88da67b3c330e04befcdd0bc9074d28f400f199c Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user