From a3f3d4d1904fd68ec3f79cc367a995a6b5a31e35 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 20 Jan 2015 09:24:37 +0100 Subject: Missing const Change-Id: I13058a46526a1186deaa8fffde303c272c0cc8aa --- sal/rtl/strtmpl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx index 8bea7db482ea..6b9265895064 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(pStr), (wchar_t)c); + wchar_t const * p = wcschr(reinterpret_cast(pStr), (wchar_t)c); return p ? p - reinterpret_cast(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(pStr), (wchar_t)c); + wchar_t const * p = wcsrchr(reinterpret_cast(pStr), (wchar_t)c); return p ? p - reinterpret_cast(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(pStr), reinterpret_cast(pSubStr)); + wchar_t const * p = wcsstr(reinterpret_cast(pStr), reinterpret_cast(pSubStr)); return p ? p - reinterpret_cast(pStr) : -1; } else -- cgit v1.2.3