diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 19:00:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:50 +0100 |
commit | 3dade5461b1644899dac694bb348d1bd5b4bea5c (patch) | |
tree | 6ede18f7138d35ffe4bdf25163b0b4a087030527 /registry/source | |
parent | 7b8329866734a25a723596444ad23a1c4f7dbf9b (diff) |
Some more loplugin:cstylecast: registry
Change-Id: I5cfb42729b5d3d97076058edb108965f248f86af
Diffstat (limited to 'registry/source')
-rw-r--r-- | registry/source/reflcnst.hxx | 2 | ||||
-rw-r--r-- | registry/source/reflread.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/registry/source/reflcnst.hxx b/registry/source/reflcnst.hxx index e08da94a5566..b62869645b12 100644 --- a/registry/source/reflcnst.hxx +++ b/registry/source/reflcnst.hxx @@ -217,7 +217,7 @@ inline sal_uInt32 writeUtf8(sal_uInt8* buffer, const sal_Char* v) inline sal_uInt32 readUtf8(const sal_uInt8* buffer, sal_Char* v, sal_uInt32 maxSize) { - sal_uInt32 size = strlen((const sal_Char*) buffer) + 1; + sal_uInt32 size = strlen(reinterpret_cast<const char*>(buffer)) + 1; if(size > maxSize) { size = maxSize; diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 5f2838a3d3d2..4099e4a751cc 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -366,7 +366,7 @@ const sal_Char* ConstantPool::readUTF8NameConstant(sal_uInt16 index) if (n < m_bufferLen && std::memchr(m_pBuffer + n, 0, m_bufferLen - n) != nullptr) { - aName = (const sal_Char*) (m_pBuffer + n); + aName = reinterpret_cast<const char*>(m_pBuffer + n); } } } |