Fix some build warnings on macOS.
[libsub.git] / src / exceptions.cc
index d59d32ac5dda10a74f74ded5b8f021604c7a8634..d09be61ae8927bbce41826b75fd9890ecc46c7c9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
 
     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
 
 #include "compose.hpp"
 #include "exceptions.h"
-#include <boost/foreach.hpp>
 
-using std::string;
 using std::list;
+using std::string;
 using namespace sub;
 
 ProgrammingError::ProgrammingError (string file, int line)
@@ -31,9 +30,18 @@ ProgrammingError::ProgrammingError (string file, int line)
 
 }
 
+
 SubripError::SubripError (string saw, string expecting, list<string> context)
        : runtime_error ("Error in SubRip file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting)
        , _context (context)
 {
 
 }
+
+
+WebVTTError::WebVTTError(string saw, string expecting, list<string> context)
+       : runtime_error("Error in WebVTT file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting)
+       , _context(context)
+{
+
+}