summaryrefslogtreecommitdiff
path: root/idl/source/cmptools/hash.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-08 11:42:16 +0200
committerNoel Grandin <noel@peralex.com>2014-05-08 11:44:54 +0200
commitf0268c9c1be546aa0b5fc9c359f514e5d8af5bbb (patch)
tree57ca82b332aa5c9ec13909ea2439c280dc9fe379 /idl/source/cmptools/hash.cxx
parent9c117de4c1d291823d1588a99011ababab2112c8 (diff)
idl: sal_Bool->bool
Change-Id: I8b15c97b1fcc6acaf567e8b1d2d37cbc99687a9d
Diffstat (limited to 'idl/source/cmptools/hash.cxx')
-rw-r--r--idl/source/cmptools/hash.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx
index de253b6b817d..4e41c8932e4a 100644
--- a/idl/source/cmptools/hash.cxx
+++ b/idl/source/cmptools/hash.cxx
@@ -41,7 +41,7 @@ SvHashTable::~SvHashTable()
{
}
-sal_Bool SvHashTable::Test_Insert( const OString& rElement, sal_Bool bInsert,
+bool SvHashTable::Test_Insert( const OString& rElement, bool bInsert,
sal_uInt32 * pInsertPos )
{
sal_uInt32 nHash;
@@ -61,7 +61,7 @@ sal_Bool SvHashTable::Test_Insert( const OString& rElement, sal_Bool bInsert,
{
if( pInsertPos )
*pInsertPos = nIndex; // place of Element
- return sal_True;
+ return true;
}
nLoop++;
lTry++;
@@ -75,10 +75,10 @@ sal_Bool SvHashTable::Test_Insert( const OString& rElement, sal_Bool bInsert,
{
nFill++;
*pInsertPos = nIndex; // return free place
- return sal_True;
+ return true;
}
}
- return( sal_False );
+ return false;
}
SvStringHashTable::SvStringHashTable( sal_uInt32 nMaxEntries )
@@ -149,30 +149,30 @@ OString SvStringHashTable::GetNearString( const OString& rName ) const
return OString();
}
-sal_Bool SvStringHashTable::IsEntry( sal_uInt32 nIndex ) const
+bool SvStringHashTable::IsEntry( sal_uInt32 nIndex ) const
{
if( nIndex >= GetMax() )
- return sal_False;
+ return false;
return pEntries[ nIndex ].HasId();
}
-sal_Bool SvStringHashTable::Insert( const OString& rName, sal_uInt32 * pIndex )
+bool SvStringHashTable::Insert( const OString& rName, sal_uInt32 * pIndex )
{
sal_uInt32 nIndex;
if( !pIndex ) pIndex = &nIndex;
- if( !SvHashTable::Test_Insert( rName, sal_True, pIndex ) )
- return sal_False;
+ if( !SvHashTable::Test_Insert( rName, true, pIndex ) )
+ return false;
if( !IsEntry( *pIndex ) )
pEntries[ *pIndex ] = SvStringHashEntry( rName, *pIndex );
- return sal_True;
+ return true;
}
-sal_Bool SvStringHashTable::Test( const OString& rName, sal_uInt32 * pPos ) const
+bool SvStringHashTable::Test( const OString& rName, sal_uInt32 * pPos ) const
{
- return const_cast<SvStringHashTable*>(this)->Test_Insert( rName, sal_False, pPos );
+ return const_cast<SvStringHashTable*>(this)->Test_Insert( rName, false, pPos );
}
SvStringHashEntry * SvStringHashTable::Get( sal_uInt32 nIndex ) const