summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/qif.cc b/qif.cc
index cc0b3daa..5e567ea0 100644
--- a/qif.cc
+++ b/qif.cc
@@ -56,8 +56,8 @@ unsigned int qif_parser_t::parse(std::istream& in,
src_idx = journal->sources.size() - 1;
linenum = 1;
- istream_pos_type beg_pos = 0;
- unsigned long beg_line = 0;
+ unsigned long beg_pos = 0;
+ unsigned long beg_line = 0;
#define SET_BEG_POS_AND_LINE() \
if (! beg_line) { \
@@ -73,7 +73,7 @@ unsigned int qif_parser_t::parse(std::istream& in,
case '\t':
if (peek_next_nonws(in) != '\n') {
get_line(in);
- throw new parse_error("Line begins with whitespace");
+ throw_(parse_exception, "Line begins with whitespace");
}
// fall through...
@@ -90,8 +90,8 @@ unsigned int qif_parser_t::parse(std::istream& in,
std::strcmp(line, "Type:Cat") == 0 ||
std::strcmp(line, "Type:Class") == 0 ||
std::strcmp(line, "Type:Memorized") == 0)
- throw new parse_error(string("QIF files of type ") + line +
- " are not supported.");
+ throw_(parse_exception,
+ "QIF files of type " << line << " are not supported.");
break;
case 'D':