From: Mikko Rasa Date: Sun, 31 Jan 2016 15:37:38 +0000 (+0200) Subject: Don't use deprecated typedefs X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9d97c6c5d3f125dd0ed23ccfa4bf0bb728a753fa;p=libs%2Fdatafile.git Don't use deprecated typedefs --- diff --git a/source/binarywriter.cpp b/source/binarywriter.cpp index 087e140..0fbf8ce 100644 --- a/source/binarywriter.cpp +++ b/source/binarywriter.cpp @@ -74,7 +74,7 @@ void BinaryWriter::collect_keywords(const Statement &st) dict[key] = next_kwd_id++; } - for(ValueArray::const_iterator i = st.args.begin(); i!=st.args.end(); ++i) + for(vector::const_iterator i = st.args.begin(); i!=st.args.end(); ++i) { char sig = i->get_signature(); string str; diff --git a/source/textwriter.cpp b/source/textwriter.cpp index f37b733..9218422 100644 --- a/source/textwriter.cpp +++ b/source/textwriter.cpp @@ -30,7 +30,7 @@ void TextWriter::write_(const Statement &st, unsigned level) string indent(level, '\t'); out.write(format("%s%s", indent, st.keyword)); - for(ValueArray::const_iterator i = st.args.begin(); i!=st.args.end(); ++i) + for(vector::const_iterator i = st.args.begin(); i!=st.args.end(); ++i) { out.put(' '); if(i->get_signature()==StringType::signature)