summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/gdbcontroller.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-23 12:47:15 +0900
committerMichele Calgaro <[email protected]>2024-02-07 00:06:53 +0900
commit12c95f5db577785d29c51643f20fe2c8700af7cb (patch)
tree8845a757afbec274baf0ed3c677df1b43b52459a /languages/cpp/debugger/gdbcontroller.cpp
parentc8d7b46522918fbb19e77e7a12d7c1d0ed9ae390 (diff)
downloadtdevelop-12c95f5db577785d29c51643f20fe2c8700af7cb.tar.gz
tdevelop-12c95f5db577785d29c51643f20fe2c8700af7cb.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'languages/cpp/debugger/gdbcontroller.cpp')
-rw-r--r--languages/cpp/debugger/gdbcontroller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/languages/cpp/debugger/gdbcontroller.cpp b/languages/cpp/debugger/gdbcontroller.cpp
index c89eb46b..be796329 100644
--- a/languages/cpp/debugger/gdbcontroller.cpp
+++ b/languages/cpp/debugger/gdbcontroller.cpp
@@ -1459,9 +1459,9 @@ void GDBController::slotDbgStdout(TDEProcess *, char *buf, int buflen)
FileSymbol file;
file.contents = reply;
- std::auto_ptr<GDBMI::Record> r(mi_parser_.parse(&file));
+ std::unique_ptr<GDBMI::Record> r(mi_parser_.parse(&file));
- if (r.get() == 0)
+ if (!r)
{
// FIXME: Issue an error!
kdDebug(9012) << "Invalid MI message: " << reply << "\n";