Compile fix for older gcc's.

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
This commit is contained in:
Georg Baum 2006-10-26 15:38:53 +00:00
parent fa1856440c
commit 0a48dce7ac

View 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();