fix compilation with gcc-4.5

This commit is contained in:
Andrzej Rybczak
2012-09-15 00:23:40 +02:00
parent c4190b6514
commit 66b799cd4c
3 changed files with 14 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ Action *parseActionLine(const std::string &line, F error)
std::string arg = getEnclosedString(line, '"', '"', 0);
Key k = stringToSpecialKey(arg);
if (k != Key::noOp)
result = new PushCharacters(&Global::wFooter, { k.getChar() });
result = new PushCharacters(&Global::wFooter, std::vector<int>{ k.getChar() });
else
error() << "invalid character passed to push_character: '" << arg << "'\n";
}