]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/table.cpp
tex2lyx/text.cpp: cosmetic
[lyx.git] / src / tex2lyx / table.cpp
index 2fa33955e7888f9f60c06b063af5c34d9fadc521..587f81290ed47440689d4839453b608b8ea43530 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "tex2lyx.h"
 
+#include "support/assert.h"
 #include "support/convert.h"
 #include "support/lstrings.h"
 
 #include <vector>
 #include <map>
 
+using namespace std;
 
 namespace lyx {
 
-using std::cerr;
-using std::endl;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::vector;
-
-
 // filled in preamble.cpp
-std::map<char, int> special_columns;
+map<char, int> special_columns;
 
 
 namespace {
@@ -471,7 +464,7 @@ void fix_colalign(vector<ColInfo> & colinfo)
 bool parse_hlines(Parser & p, Token const & t, string & hlines,
                  bool is_long_tabular)
 {
-       BOOST_ASSERT(t.cat() == catEscape);
+       LASSERT(t.cat() == catEscape, return false);
 
        if (t.cs() == "hline")
                hlines += "\\hline";