* potential compile fix for msvc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-05-19 19:59:48 +00:00
parent 7d7096148e
commit 233ff911de

View File

@ -236,7 +236,7 @@ iconv_convert(IconvProcessor & processor, InType const * buf, size_t buflen)
// FIXME Maybe throw an exception and handle that in the caller?
return vector<RetType>();
RetType const * tmp = reinterpret_cast<RetType const *>(outbuf.data());
RetType const * tmp = reinterpret_cast<RetType const *>(&outbuf[0]);
return vector<RetType>(tmp, tmp + bytes / sizeof(RetType));
}