sal/rtl/strtmpl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit a3f3d4d1904fd68ec3f79cc367a995a6b5a31e35 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jan 20 09:24:37 2015 +0100 Missing const Change-Id: I13058a46526a1186deaa8fffde303c272c0cc8aa diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx index 8bea7db..6b92658 100644 --- a/sal/rtl/strtmpl.cxx +++ b/sal/rtl/strtmpl.cxx @@ -340,7 +340,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfChar )( const IMPL_RTL_STRCODE* pStr if (sizeof(IMPL_RTL_STRCODE) == sizeof(wchar_t)) { // take advantage of builtin optimisations - wchar_t* p = wcschr(reinterpret_cast<wchar_t const *>(pStr), (wchar_t)c); + wchar_t const * p = wcschr(reinterpret_cast<wchar_t const *>(pStr), (wchar_t)c); return p ? p - reinterpret_cast<wchar_t const *>(pStr) : -1; } else @@ -399,7 +399,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( lastIndexOfChar )( const IMPL_RTL_STRCODE* if (sizeof(IMPL_RTL_STRCODE) == sizeof(wchar_t)) { // take advantage of builtin optimisations - wchar_t* p = wcsrchr(reinterpret_cast<wchar_t const *>(pStr), (wchar_t)c); + wchar_t const * p = wcsrchr(reinterpret_cast<wchar_t const *>(pStr), (wchar_t)c); return p ? p - reinterpret_cast<wchar_t const *>(pStr) : -1; } else @@ -443,7 +443,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfStr )( const IMPL_RTL_STRCODE* pStr, if (sizeof(IMPL_RTL_STRCODE) == sizeof(wchar_t)) { // take advantage of builtin optimisations - wchar_t* p = wcsstr(reinterpret_cast<wchar_t const *>(pStr), reinterpret_cast<wchar_t const *>(pSubStr)); + wchar_t const * p = wcsstr(reinterpret_cast<wchar_t const *>(pStr), reinterpret_cast<wchar_t const *>(pSubStr)); return p ? p - reinterpret_cast<wchar_t const *>(pStr) : -1; } else _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits