diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-26 17:32:20 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-26 17:32:20 (GMT) |
commit | 55e86052e0522ac7b51743449055572cc8bc7823 (patch) | |
tree | 7f69870aea5296850947967e567706538082dae5 /src/portable.cpp | |
parent | 51316839084c3292a8fb216e73ed146683028d4a (diff) | |
download | Doxygen-55e86052e0522ac7b51743449055572cc8bc7823.zip Doxygen-55e86052e0522ac7b51743449055572cc8bc7823.tar.gz Doxygen-55e86052e0522ac7b51743449055572cc8bc7823.tar.bz2 |
Fix issues caused by QCString::rawData and QCString::operator[]
- methods were marked const but still returned a non-const reference,
cause wrongly optimized code for some platforms/compilers
Diffstat (limited to 'src/portable.cpp')
-rw-r--r-- | src/portable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable.cpp b/src/portable.cpp index 7448e55..7bcc830 100644 --- a/src/portable.cpp +++ b/src/portable.cpp @@ -607,7 +607,7 @@ size_t Portable::recodeUtf8StringToW(const QCString &inputStr,uint16_t **outBuf) size_t inRemains = len; size_t outRemains = len*sizeof(uint16_t)+2; // chars + \0 const char *p = inputStr.data(); - portable_iconv(handle,(char**)&p,&inRemains,(char**)&buf,&outRemains); + portable_iconv(handle,&p,&inRemains,(char**)&buf,&outRemains); *buf=0; portable_iconv_close(handle); return len; |