summaryrefslogtreecommitdiffstats
path: root/desktop/source/deployment/dp_persmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-18 10:39:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-18 12:50:09 +0000
commita7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch)
treebad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /desktop/source/deployment/dp_persmap.cxx
parentfix android build (diff)
downloadcore-a7f6efc68ba97db98ebab9ebc473bffb8ded757f.tar.gz
core-a7f6efc68ba97db98ebab9ebc473bffb8ded757f.zip
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'desktop/source/deployment/dp_persmap.cxx')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index 010c0f55ec81..d032153cf8dc 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -158,7 +158,7 @@ void PersistentMap::open()
}
-bool PersistentMap::readAll()
+void PersistentMap::readAll()
{
// prepare for re-reading the map-file
const osl::FileBase::RC nRes = m_MapFile.setPos( osl_Pos_Absolut, 0);
@@ -171,11 +171,11 @@ bool PersistentMap::readAll()
m_MapFile.read( aHeaderBytes, sizeof(aHeaderBytes), nBytesRead);
OSL_ASSERT( nBytesRead == sizeof(aHeaderBytes));
if( nBytesRead != sizeof(aHeaderBytes))
- return false;
+ return;
// check header magic
for( int i = 0; i < (int)sizeof(PmapMagic); ++i)
if( aHeaderBytes[i] != PmapMagic[i])
- return false;
+ return;
// read key value pairs and add them to the map
ByteSequence aKeyLine;
@@ -185,11 +185,11 @@ bool PersistentMap::readAll()
// read key-value line pair
// an empty key name indicates the end of the line pairs
if( m_MapFile.readLine( aKeyLine) != osl::File::E_None)
- return false;
+ return;
if( !aKeyLine.getLength())
break;
if( m_MapFile.readLine( aValLine) != osl::File::E_None)
- return false;
+ return;
// decode key and value strings
const OString aKeyName = decodeString( reinterpret_cast<char const *>(aKeyLine.getConstArray()), aKeyLine.getLength());
const OString aValName = decodeString( reinterpret_cast<char const *>(aValLine.getConstArray()), aValLine.getLength());
@@ -198,13 +198,12 @@ bool PersistentMap::readAll()
// check end-of-file status
sal_Bool bIsEOF = true;
if( m_MapFile.isEndOfFile( &bIsEOF) != osl::File::E_None )
- return false;
+ return;
if( bIsEOF )
break;
}
m_bIsDirty = false;
- return true;
}
void PersistentMap::flush()