diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:24:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:24:37 +0100 |
commit | a3f3d4d1904fd68ec3f79cc367a995a6b5a31e35 (patch) | |
tree | 52e4e251674e30042a7e379d367bed986439f5b6 /sal/rtl | |
parent | 71edf281f38a3ee839a99393cb06316c7231f3d2 (diff) |
Missing const
Change-Id: I13058a46526a1186deaa8fffde303c272c0cc8aa
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/strtmpl.cxx | 6 |
1 files 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<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 |