diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-23 12:47:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-07 00:27:18 +0900 |
commit | 43fd0a38af0135396d52cc9ace6900269824deae (patch) | |
tree | 89b4d12e7194a5f4223b2269d14f7d685d475b28 /languages/cpp/debugger/gdbcontroller.cpp | |
parent | c891bb5d0682b26c64cee49cbdbfe398285c4c1b (diff) | |
download | tdevelop-43fd0a38af0135396d52cc9ace6900269824deae.tar.gz tdevelop-43fd0a38af0135396d52cc9ace6900269824deae.zip |
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 12c95f5db577785d29c51643f20fe2c8700af7cb)
Diffstat (limited to 'languages/cpp/debugger/gdbcontroller.cpp')
-rw-r--r-- | languages/cpp/debugger/gdbcontroller.cpp | 4 |
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"; |