X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.cpp;h=e4282aea8f64ae3cf23eec698f885ab2bcd823b6;hb=256b44a5009467171af53316141277027bcc0ba4;hp=4ed2877a4424c2389c890473a0e71918418516ba;hpb=193d36c8ce13cf2c5cd055fbd008f3003dda0a3e;p=libs%2Fdatafile.git diff --git a/source/binaryparser.cpp b/source/binaryparser.cpp index 4ed2877..e4282ae 100644 --- a/source/binaryparser.cpp +++ b/source/binaryparser.cpp @@ -91,8 +91,8 @@ void BinaryParser::process_control_statement(const Statement &st) const string &kw = st.args[1].get(); const string &args = st.args[2].get(); - for(string::const_iterator i=args.begin(); i!=args.end(); ++i) - for(unsigned j=0; valid_signatures[j]!=*i; ++j) + for(char c: args) + for(unsigned j=0; valid_signatures[j]!=c; ++j) if(!valid_signatures[j]) throw bad_definition("__kwd");