forked from qt-creator/qt-creator
qtcreatorcdbext: use std::unique_ptr instead of std::auto_ptr
Qt6 will require C++17, which has removed std::auto_ptr Change-Id: I4f87ce0196799269735a878592ef3e930e94d4fc Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -137,8 +137,8 @@ private:
|
|||||||
bool isInitialized() const;
|
bool isInitialized() const;
|
||||||
|
|
||||||
IInterfacePointer<CIDebugControl> m_control;
|
IInterfacePointer<CIDebugControl> m_control;
|
||||||
std::auto_ptr<LocalsSymbolGroup> m_symbolGroup;
|
std::unique_ptr<LocalsSymbolGroup> m_symbolGroup;
|
||||||
std::auto_ptr<WatchesSymbolGroup> m_watchesSymbolGroup;
|
std::unique_ptr<WatchesSymbolGroup> m_watchesSymbolGroup;
|
||||||
|
|
||||||
CIDebugClient *m_hookedClient = nullptr;
|
CIDebugClient *m_hookedClient = nullptr;
|
||||||
IDebugEventCallbacks *m_oldEventCallback = nullptr;
|
IDebugEventCallbacks *m_oldEventCallback = nullptr;
|
||||||
|
@@ -227,7 +227,7 @@ std::string SymbolGroup::debug(const std::string &iname,
|
|||||||
{
|
{
|
||||||
std::ostringstream str;
|
std::ostringstream str;
|
||||||
str << '\n';
|
str << '\n';
|
||||||
std::auto_ptr<DebugSymbolGroupNodeVisitor>
|
std::unique_ptr<DebugSymbolGroupNodeVisitor>
|
||||||
visitor(filter.empty() ?
|
visitor(filter.empty() ?
|
||||||
new DebugSymbolGroupNodeVisitor(str, verbosity) :
|
new DebugSymbolGroupNodeVisitor(str, verbosity) :
|
||||||
new DebugFilterSymbolGroupNodeVisitor(str, filter, verbosity));
|
new DebugFilterSymbolGroupNodeVisitor(str, filter, verbosity));
|
||||||
|
Reference in New Issue
Block a user