diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:23:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:47 +0100 |
commit | 87b9d323a26183131a1f9e6f0fab00a10ccda0ef (patch) | |
tree | 3a0bb8e07b689e4b2561687d98ad6ea9dae1c7fe /desktop/source/deployment/dp_persmap.cxx | |
parent | Some more loplugin:cstylecast: dbaccess (diff) | |
download | core-87b9d323a26183131a1f9e6f0fab00a10ccda0ef.tar.gz core-87b9d323a26183131a1f9e6f0fab00a10ccda0ef.zip |
Some more loplugin:cstylecast: desktop
Change-Id: I1aeba8e1a8452d0329244d85c7c8cbd55353582f
Diffstat (limited to 'desktop/source/deployment/dp_persmap.cxx')
-rw-r--r-- | desktop/source/deployment/dp_persmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx index eb47be61d22b..a8acf90d8391 100644 --- a/desktop/source/deployment/dp_persmap.cxx +++ b/desktop/source/deployment/dp_persmap.cxx @@ -203,8 +203,8 @@ bool PersistentMap::readAll() if( m_MapFile.readLine( aValLine) != osl::File::E_None) return false; // decode key and value strings - const OString aKeyName = decodeString( (sal_Char*)aKeyLine.getConstArray(), aKeyLine.getLength()); - const OString aValName = decodeString( (sal_Char*)aValLine.getConstArray(), aValLine.getLength()); + const OString aKeyName = decodeString( reinterpret_cast<char const *>(aKeyLine.getConstArray()), aKeyLine.getLength()); + const OString aValName = decodeString( reinterpret_cast<char const *>(aValLine.getConstArray()), aValLine.getLength()); // insert key-value pair into map add( aKeyName, aValName ); // check end-of-file status @@ -391,7 +391,7 @@ bool PersistentMap::importFromBDB() break; if( (pCur[0] != 0x01) || (pCur[1] != 0xFF)) continue; - const OString aVal( (sal_Char*)pVal, pCur - pVal); + const OString aVal( reinterpret_cast<char const *>(pVal), pCur - pVal); // get the key-candidate const sal_uInt8* pKey = pCur + 1; while( ++pCur < pEnd) @@ -399,7 +399,7 @@ bool PersistentMap::importFromBDB() break; if( (pCur < pEnd) && (*pCur > 0x01)) continue; - const OString aKey( (sal_Char*)pKey, pCur - pKey); + const OString aKey( reinterpret_cast<char const *>(pKey), pCur - pKey); --pCur; // prepare for next round by rewinding to end of key-string // add the key/value pair |