X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fdocstring.cpp;h=c937ba3721a1157bd2acff7d0bc754b74b0e614e;hb=0a9735c5f7bbbaa24ac2e3e4fa745c6dfbc95a18;hp=d19c2e39be7aa7396867b98662b76551fcf33619;hpb=4457cd44e82ffa010e78e06b1bd7fc0ac2c82f2b;p=lyx.git diff --git a/src/support/docstring.cpp b/src/support/docstring.cpp index d19c2e39be..c937ba3721 100644 --- a/src/support/docstring.cpp +++ b/src/support/docstring.cpp @@ -133,7 +133,7 @@ string const to_local8bit(docstring const & s) if (s.empty()) return string(); QByteArray const local = toqstr(s).toLocal8Bit(); - if (local.size() == 0) + if (local.isEmpty()) throw to_local8bit_failure(); return string(local.begin(), local.end()); }