From 5ad33b463f977a286f69fd1c87c0db8cc8ac9e56 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 7 Jul 2015 19:33:54 +0100 Subject: Missing iostream includes for Arch. --- src/stl_text_reader.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/stl_text_reader.cc') diff --git a/src/stl_text_reader.cc b/src/stl_text_reader.cc index ad155c9..c4c1090 100644 --- a/src/stl_text_reader.cc +++ b/src/stl_text_reader.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ #include #include #include +#include using std::list; using std::ostream; @@ -42,7 +43,7 @@ STLTextReader::STLTextReader (istream& in) /* XXX: no idea what this should be */ _subtitle.vertical_position.lines = 32; _subtitle.vertical_position.reference = TOP_OF_SCREEN; - + while (in.good ()) { string line; getline (in, line); @@ -77,7 +78,7 @@ STLTextReader::STLTextReader (istream& in) if (divider[0] != string::npos) { divider[1] = line.find_first_of (",", divider[0] + 1); } - + if (divider[0] == string::npos || divider[1] == string::npos || divider[0] <= 1 || divider[1] >= line.length() - 1) { warn (String::compose ("Unrecognised line %1", line)); continue; -- cgit v1.2.3