using emplace

This commit is contained in:
caheckman 2021-01-07 14:36:10 -05:00
parent 3644c120c0
commit 5f715d73e3
34 changed files with 101 additions and 103 deletions

View file

@ -142,7 +142,7 @@ void PrintLanguage::pushOp(const OpToken *tok,const PcodeOp *op)
else
id = emit->openGroup();
}
revpol.push_back(ReversePolish());
revpol.emplace_back();
revpol.back().tok = tok;
revpol.back().visited = 0;
revpol.back().paren = paren;