]> git.lyx.org Git - features.git/commitdiff
Compile fix for older gcc's.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 26 Oct 2006 15:38:53 +0000 (15:38 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 26 Oct 2006 15:38:53 +0000 (15:38 +0000)
I accidentally used data() which is not yet in the standard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15565 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.C

index 6ef28173db255be70a49538b1fb1e2d80dbc0463..f37ad13ba5d94880345d7115b44cfc10084c4225 100644 (file)
@@ -500,7 +500,7 @@ TeXOnePar(Buffer const & buf,
                // two encodings in one file.
                // FIXME: Catch iconv conversion errors and display an error
                // dialog. 
-               std::vector<char_type> const faked = lyx::eightbit_to_ucs4(encoded.data(),
+               std::vector<char_type> const faked = lyx::eightbit_to_ucs4(&(encoded[0]),
                        encoded.size(), doc_language->encoding()->iconvName());
                std::vector<char_type>::const_iterator const end = faked.end();
                std::vector<char_type>::const_iterator it = faked.begin();