summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/mi/miparser.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:27:18 +0900
commit43fd0a38af0135396d52cc9ace6900269824deae (patch)
tree89b4d12e7194a5f4223b2269d14f7d685d475b28 /languages/cpp/debugger/mi/miparser.cpp
parentc891bb5d0682b26c64cee49cbdbfe398285c4c1b (diff)
downloadtdevelop-43fd0a38af0135396d52cc9ace6900269824deae.tar.gz
tdevelop-43fd0a38af0135396d52cc9ace6900269824deae.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 12c95f5db577785d29c51643f20fe2c8700af7cb)
Diffstat (limited to 'languages/cpp/debugger/mi/miparser.cpp')
-rw-r--r--languages/cpp/debugger/mi/miparser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/cpp/debugger/mi/miparser.cpp b/languages/cpp/debugger/mi/miparser.cpp
index e078c04c..e950f2f3 100644
--- a/languages/cpp/debugger/mi/miparser.cpp
+++ b/languages/cpp/debugger/mi/miparser.cpp
@@ -97,7 +97,7 @@ bool MIParser::parsePrompt(Record *&record)
bool MIParser::parseStreamRecord(Record *&record)
{
- std::auto_ptr<StreamRecord> stream(new StreamRecord);
+ std::unique_ptr<StreamRecord> stream(new StreamRecord);
switch (lex->lookAhead()) {
case '~':
@@ -128,7 +128,7 @@ bool MIParser::parseResultRecord(Record *&record)
TQString reason = lex->currentTokenText();
lex->nextToken();
- std::auto_ptr<ResultRecord> res(new ResultRecord);
+ std::unique_ptr<ResultRecord> res(new ResultRecord);
res->reason = reason;
if (lex->lookAhead() != ',') {
@@ -151,7 +151,7 @@ bool MIParser::parseResult(Result *&result)
TQString variable = lex->currentTokenText();
lex->nextToken();
- std::auto_ptr<Result> res(new Result);
+ std::unique_ptr<Result> res(new Result);
res->variable = variable;
if (lex->lookAhead() != '=')
@@ -207,7 +207,7 @@ bool MIParser::parseList(Value *&value)
{
ADVANCE('[');
- std::auto_ptr<ListValue> lst(new ListValue);
+ std::unique_ptr<ListValue> lst(new ListValue);
// Note: can't use parseCSV here because of nested
// "is this Value or Result" guessing. Too lazy to factor
@@ -248,7 +248,7 @@ bool MIParser::parseList(Value *&value)
bool MIParser::parseCSV(TupleValue** value,
char start, char end)
{
- std::auto_ptr<TupleValue> tuple(new TupleValue);
+ std::unique_ptr<TupleValue> tuple(new TupleValue);
if (!parseCSV(*tuple, start, end))
return false;