forked from qt-creator/qt-creator
ElfReader: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews QSharedPointer impl is poor and it's going to be removed from Qt 7. Change-Id: I2a4b1c31acdf2f05a952aba2b813d9f2dd8cb3c6 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2850,7 +2850,7 @@ void CppDebuggerEngine::validateRunParameters(DebuggerRunParameters &rp)
|
||||
}
|
||||
if (globalRegExpSourceMap.isEmpty())
|
||||
return;
|
||||
if (QSharedPointer<Utils::ElfMapper> mapper = reader.readSection(".debug_str")) {
|
||||
if (std::shared_ptr<ElfMapper> mapper = reader.readSection(".debug_str")) {
|
||||
const char *str = mapper->start;
|
||||
const char *limit = str + mapper->fdlen;
|
||||
bool found = false;
|
||||
|
||||
Reference in New Issue
Block a user