diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-17 11:16:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-17 11:17:21 +0200 |
commit | fee4efcb54c8162955f6fe626d9b68c3b74b3068 (patch) | |
tree | df8989eab6d8aacb5f37f0673a1a14eb5584a394 /dbaccess/source/ui/misc/indexcollection.cxx | |
parent | 6907b67d3d3208eb54289db2476132188d86dfec (diff) |
dbaccess: sal_Bool->bool
Change-Id: Ieb52470f9638b74898954db3890aaf2cf202290a
Diffstat (limited to 'dbaccess/source/ui/misc/indexcollection.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/indexcollection.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/misc/indexcollection.cxx b/dbaccess/source/ui/misc/indexcollection.cxx index 8fdb36efee65..a1c9b0cb9fac 100644 --- a/dbaccess/source/ui/misc/indexcollection.cxx +++ b/dbaccess/source/ui/misc/indexcollection.cxx @@ -190,7 +190,7 @@ namespace dbaui } } - sal_Bool OIndexCollection::dropNoRemove(const Indexes::iterator& _rPos) SAL_THROW((SQLException)) + bool OIndexCollection::dropNoRemove(const Indexes::iterator& _rPos) SAL_THROW((SQLException)) { try { @@ -200,7 +200,7 @@ namespace dbaui if (!xDropIndex.is()) { OSL_FAIL("OIndexCollection::drop: no XDrop interface!"); - return sal_False; + return false; } xDropIndex->dropByName(_rPos->getOriginalName()); @@ -212,7 +212,7 @@ namespace dbaui catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); - return sal_False; + return false; } // adjust the OIndex structure @@ -220,21 +220,21 @@ namespace dbaui OSL_ENSURE(aDropped != m_aIndexes.end(), "OIndexCollection::drop: invalid original name, but successful commit?!"); aDropped->flagAsNew(GrantIndexAccess()); - return sal_True; + return true; } - sal_Bool OIndexCollection::drop(const Indexes::iterator& _rPos) SAL_THROW((SQLException)) + bool OIndexCollection::drop(const Indexes::iterator& _rPos) SAL_THROW((SQLException)) { OSL_ENSURE((_rPos >= m_aIndexes.begin()) && (_rPos < m_aIndexes.end()), "OIndexCollection::drop: invalid position (fasten your seatbelt .... this will crash)!"); if (!_rPos->isNew()) if (!dropNoRemove(_rPos)) - return sal_False; + return false; // adjust the index array m_aIndexes.erase(_rPos); - return sal_True; + return true; } void OIndexCollection::implFillIndexInfo(OIndex& _rIndex) SAL_THROW((Exception)) |