Add missing virtual destructor.
[libdcp.git] / src / subtitle_asset.cc
index 8e15ba1acffb1681a89a913af105b245e7fcec85..15ddb2a8fd57f6711986b50a0978c4dd6cde3615 100644 (file)
 #include "subtitle_asset.h"
 #include "util.h"
 
-using namespace std;
-using namespace boost;
+using std::string;
+using std::list;
+using std::ostream;
+using std::ofstream;
+using std::stringstream;
+using boost::shared_ptr;
+using boost::lexical_cast;
 using namespace libdcp;
 
 SubtitleAsset::SubtitleAsset (string directory, string xml_file)
@@ -396,7 +401,7 @@ SubtitleAsset::write_xml ()
        /* XXX: script, underlined, weight not supported */
 
        bool first = true;
-       bool italic;
+       bool italic = false;
        Color color;
        int size = 0;
        Effect effect = NONE;