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:
Cristian Adam
2020-04-29 19:12:04 +02:00
parent 8542699b89
commit 732b17a2c4
2 changed files with 3 additions and 3 deletions

View File

@@ -137,8 +137,8 @@ private:
bool isInitialized() const;
IInterfacePointer<CIDebugControl> m_control;
std::auto_ptr<LocalsSymbolGroup> m_symbolGroup;
std::auto_ptr<WatchesSymbolGroup> m_watchesSymbolGroup;
std::unique_ptr<LocalsSymbolGroup> m_symbolGroup;
std::unique_ptr<WatchesSymbolGroup> m_watchesSymbolGroup;
CIDebugClient *m_hookedClient = nullptr;
IDebugEventCallbacks *m_oldEventCallback = nullptr;

View File

@@ -227,7 +227,7 @@ std::string SymbolGroup::debug(const std::string &iname,
{
std::ostringstream str;
str << '\n';
std::auto_ptr<DebugSymbolGroupNodeVisitor>
std::unique_ptr<DebugSymbolGroupNodeVisitor>
visitor(filter.empty() ?
new DebugSymbolGroupNodeVisitor(str, verbosity) :
new DebugFilterSymbolGroupNodeVisitor(str, filter, verbosity));