summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/mi/miparser.cpp
diff options
context:
space:
mode:
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;