From 43fd0a38af0135396d52cc9ace6900269824deae Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 23 Jan 2024 12:47:15 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro (cherry picked from commit 12c95f5db577785d29c51643f20fe2c8700af7cb) --- languages/cpp/debugger/gdbcontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'languages/cpp/debugger/gdbcontroller.cpp') 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 r(mi_parser_.parse(&file)); + std::unique_ptr r(mi_parser_.parse(&file)); - if (r.get() == 0) + if (!r) { // FIXME: Issue an error! kdDebug(9012) << "Invalid MI message: " << reply << "\n"; -- cgit v1.2.3