]> git.lyx.org Git - features.git/blobdiff - src/text2.C
Tiny unicode optimization: avoid ucs4->utf8->ucs4 roundtrip
[features.git] / src / text2.C
index b5883f3ba676609d77f95ffb282114e54ea15d69..16ca5c565b5a31afc8fff04f7a4aba2fe71d20a5 100644 (file)
@@ -576,7 +576,7 @@ void LyXText::toggleFree(LCursor & cur, LyXFont const & font, bool toggleall)
 }
 
 
-string LyXText::getStringToIndex(LCursor const & cur)
+docstring LyXText::getStringToIndex(LCursor const & cur)
 {
        BOOST_ASSERT(this == cur.text());
 
@@ -598,7 +598,7 @@ string LyXText::getStringToIndex(LCursor const & cur)
                        idxstring = tmpcur.selectionAsString(false);
        }
 
-       return to_utf8(idxstring);
+       return idxstring;
 }