]> git.lyx.org Git - features.git/commitdiff
* potential compile fix for msvc.
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 19 May 2009 19:59:48 +0000 (19:59 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 19 May 2009 19:59:48 +0000 (19:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29739 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/unicode.cpp

index 7f601a86c5e32f684c8a9345fb87ffcb7b20eed4..4288c5ac5d48442a46c7716bfc2d8a9ce2cce9c0 100644 (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));
 }