diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-11 09:14:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-11 11:35:42 +0200 |
commit | 5d892a3378dfd5c452ba106b002c7cef9a77a861 (patch) | |
tree | 7c0456184484575f691edb4bdf99b8e880ac7f95 /idl/source/cmptools/lex.cxx | |
parent | 1459f127711ba11e0ce044d9fb70d1941b5c3209 (diff) |
idl: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I19fb53e162f3af282cd8cf46b965bce9506731ec
Diffstat (limited to 'idl/source/cmptools/lex.cxx')
-rw-r--r-- | idl/source/cmptools/lex.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index 84737e28df2c..85575113fda3 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -119,7 +119,7 @@ SvTokenStream::~SvTokenStream() void SvTokenStream::FillTokenList() { SvToken * pToken = new SvToken(); - aTokList.push_back(pToken); + aTokList.push_back(std::unique_ptr<SvToken>(pToken)); do { if( !MakeToken( *pToken ) ) @@ -127,10 +127,10 @@ void SvTokenStream::FillTokenList() if (!aTokList.empty()) { *pToken = SvToken(); - boost::ptr_vector<SvToken>::const_iterator it = aTokList.begin(); + std::vector<std::unique_ptr<SvToken> >::const_iterator it = aTokList.begin(); - pToken->SetLine(it->GetLine()); - pToken->SetColumn(it->GetColumn()); + pToken->SetLine((*it)->GetLine()); + pToken->SetColumn((*it)->GetColumn()); } break; } @@ -141,7 +141,7 @@ void SvTokenStream::FillTokenList() else { pToken = new SvToken(); - aTokList.push_back(pToken); + aTokList.push_back(std::unique_ptr<SvToken>(pToken)); } } while( !pToken->IsEof() ); |