Some more loplugin:cstylecast: registry

Change-Id: I5cfb42729b5d3d97076058edb108965f248f86af
This commit is contained in:
Stephan Bergmann
2015-01-17 19:00:46 +01:00
parent 7b83298667
commit 3dade5461b
2 changed files with 2 additions and 2 deletions

View File

@@ -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) 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) if(size > maxSize)
{ {
size = maxSize; size = maxSize;

View File

@@ -366,7 +366,7 @@ const sal_Char* ConstantPool::readUTF8NameConstant(sal_uInt16 index)
if (n < m_bufferLen if (n < m_bufferLen
&& std::memchr(m_pBuffer + n, 0, m_bufferLen - n) != nullptr) && 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);
} }
} }
} }