summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/mi
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 12:47:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-07 00:06:53 +0900
commit12c95f5db577785d29c51643f20fe2c8700af7cb (patch)
tree8845a757afbec274baf0ed3c677df1b43b52459a /languages/cpp/debugger/mi
parentc8d7b46522918fbb19e77e7a12d7c1d0ed9ae390 (diff)
downloadtdevelop-12c95f5db577785d29c51643f20fe2c8700af7cb.tar.gz
tdevelop-12c95f5db577785d29c51643f20fe2c8700af7cb.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/cpp/debugger/mi')
-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;