]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/text.cpp
Use empty() to check empty and non-empty'ness not size()
[lyx.git] / src / tex2lyx / text.cpp
index e397c32fd75ae9d4621431696b7f8af0c3ad0654..01626f3a500892313a2afbde6d830c93171e0657 100644 (file)
@@ -4384,7 +4384,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        /*
                        string s = t.asInput();
                        string z = p.verbatim_item();
-                       while (p.good() && z != " " && z.size()) {
+                       while (p.good() && z != " " && !z.empty()) {
                                //cerr << "read: " << z << endl;
                                s += z;
                                z = p.verbatim_item();