summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/qif.cc b/qif.cc
index afc8d70a..29ce58c8 100644
--- a/qif.cc
+++ b/qif.cc
@@ -102,7 +102,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
case 'D':
SET_BEG_POS_AND_LINE();
- in >> line;
+ get_line(in);
if (! parse_date(line, &entry->date))
throw parse_error(path, linenum, "Failed to parse date");
break;
@@ -110,7 +110,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
case 'T':
case '$': {
SET_BEG_POS_AND_LINE();
- in >> line;
+ get_line(in);
xact->amount.parse(line);
unsigned long flags = xact->amount.commodity().flags;
@@ -145,10 +145,10 @@ unsigned int qif_parser_t::parse(std::istream& in,
case 'N':
SET_BEG_POS_AND_LINE();
if (std::isdigit(in.peek())) {
- in >> line;
+ get_line(in);
entry->code = line;
} else {
- in >> line;
+ get_line(in);
}
break;