summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/dp_persmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/dp_persmap.cxx')
-rw-r--r--desktop/source/deployment/dp_persmap.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/deployment/dp_persmap.cxx b/desktop/source/deployment/dp_persmap.cxx
index 93673c977246..78f5b42d0824 100644
--- a/desktop/source/deployment/dp_persmap.cxx
+++ b/desktop/source/deployment/dp_persmap.cxx
@@ -120,13 +120,13 @@ static OString decodeString( const sal_Char* pEncChars, int nLen)
if( c == '%')
{
--i;
- assert( i >= 0);
+ OSL_ASSERT( i >= 0);
c = *(pChar++);
if( ('0' <= c) && (c <= '9'))
c -= '0';
else
{
- assert( ('A' <= c) && (c <= 'F'));
+ OSL_ASSERT( ('A' <= c) && (c <= 'F'));
c -= ('A'-10);
}
}
@@ -165,7 +165,7 @@ void PersistentMap::readAll()
char aHeaderBytes[ sizeof(PmapMagic)];
sal_uInt64 nBytesRead = 0;
m_MapFile.read( aHeaderBytes, sizeof(aHeaderBytes), nBytesRead);
- assert( nBytesRead == sizeof(aHeaderBytes));
+ OSL_ASSERT( nBytesRead == sizeof(aHeaderBytes));
if( nBytesRead != sizeof(aHeaderBytes))
return;
// check header magic
@@ -229,13 +229,13 @@ void PersistentMap::flush()
const OString aKeyString = encodeString( (*it).first);
const sal_Int32 nKeyLen = aKeyString.getLength();
m_MapFile.write( aKeyString.getStr(), nKeyLen, nBytesWritten);
- assert( nKeyLen == (sal_Int32)nBytesWritten);
+ OSL_ASSERT( nKeyLen == (sal_Int32)nBytesWritten);
m_MapFile.write( "\n", 1, nBytesWritten);
// write line for value
const OString& rValString = encodeString( (*it).second);
const sal_Int32 nValLen = rValString.getLength();
m_MapFile.write( rValString.getStr(), nValLen, nBytesWritten);
- assert( nValLen == (sal_Int32)nBytesWritten);
+ OSL_ASSERT( nValLen == (sal_Int32)nBytesWritten);
m_MapFile.write( "\n", 1, nBytesWritten);
}