]> git.lyx.org Git - lyx.git/blobdiff - src/tabular-old.C
Remove unused font variable which caused a warning.
[lyx.git] / src / tabular-old.C
index b769acc2296cb0103ab58a7764b710c802a76664..ec9c0fe9bc2495f9b8d457097ed45efbec610500 100644 (file)
@@ -20,12 +20,15 @@ using std::istream;
 using std::getline;
 using std::endl;
 
+#ifndef CXX_GLOBAL_CSTD
+using std::strlen;
+#endif
 
 namespace {
 
 bool getTokenValue(string const & str, const char * token, string & ret)
 {
-    size_t token_length = std::strlen(token);
+    size_t token_length = strlen(token);
     string::size_type pos = str.find(token);
 
     if (pos == string::npos || pos + token_length + 1 >= str.length()
@@ -48,12 +51,12 @@ bool getTokenValue(string const & str, const char * token, string & ret)
 bool getTokenValue(string const & str, const char * token, int & num)
 {
     string::size_type pos = str.find(token);
-    char ch = str[pos + std::strlen(token)];
+    char ch = str[pos + strlen(token)];
 
     if ((pos == string::npos) || (ch != '='))
        return false;
     string ret;
-    pos += std::strlen(token) + 1;
+    pos += strlen(token) + 1;
     ch = str[pos];
     if ((ch != '"') && (ch != '\'')) { // only read till next space
        if (!isdigit(ch))
@@ -101,12 +104,12 @@ bool getTokenValue(string const & str, const char * token,
 bool getTokenValue(string const & str, const char * token, bool & flag)
 {
     string::size_type pos = str.find(token);
-    char ch = str[pos + std::strlen(token)];
+    char ch = str[pos + strlen(token)];
 
     if ((pos == string::npos) || (ch != '='))
        return false;
     string ret;
-    pos += std::strlen(token) + 1;
+    pos += strlen(token) + 1;
     ch = str[pos];
     if ((ch != '"') && (ch != '\'')) { // only read till next space
        if (!isdigit(ch))
@@ -203,7 +206,7 @@ void LyXTabular::ReadOld(Buffer const * buf, istream & is,
            getTokenValue(line, "special", cell_info[i][j].align_special);
            l_getline(is, line);
            if (prefixIs(line, "\\begin_inset")) {
-               cell_info[i][j].inset.Read(buf, lex);
+               cell_info[i][j].inset.read(buf, lex);
                l_getline(is, line);
            }
            if (line != "</Cell>") {