]> git.lyx.org Git - features.git/blobdiff - src/support/lyxstring.C
a couple of name changes and new functionality in lyxvc and vc-backend
[features.git] / src / support / lyxstring.C
index 9b6d24ea0f601d122f95f482a081f857a1415199..10db7b232dca0f78a7dc4a826fe38a02a1a1f88e 100644 (file)
@@ -629,7 +629,8 @@ lyxstring & lyxstring::assign(iterator first, iterator last)
 lyxstring::const_reference lyxstring::operator[](size_type pos) const
 {
        Assert(pos <= rep->sz); // OURS!
-       return pos == rep->sz ? '\0' : rep->s[pos];
+       static char helper = '\0';
+       return pos == rep->sz ? helper : rep->s[pos];
 }