diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 14:58:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 15:00:54 +0100 |
commit | bbd9668d5f70d8ff00a7b10915e7a16ceadb8443 (patch) | |
tree | 4e65b4d58e6a4298219b1909f524b710677606d9 /dbaccess | |
parent | 4eda1a0293a869bf804056f1e9e04c984c69454d (diff) |
bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 087dbe49363a..e67c1220388b 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2581,7 +2581,7 @@ bool SbaTableQueryBrowser::implSelect( SvTreeListEntry* _pEntry ) : CommandType::QUERY; // check if need to rebuild the rowset - sal_Bool bRebuild = ( xOldConnection != pConData->xConnection ) + bool bRebuild = ( xOldConnection != pConData->xConnection ) || ( nOldType != nCommandType ) || ( aName != aOldName ); @@ -3187,13 +3187,13 @@ void SbaTableQueryBrowser::impl_initialize() // should we display all registered databases in the left hand side tree? // or only *one* special? - sal_Bool bLimitedTreeEntries = sal_False; + bool bLimitedTreeEntries = false; // if we're part of a frame which is a secondary frame of a database document, then only // display the database for this document, not all registered ones bLimitedTreeEntries |= bSubFrameOfEmbeddedDocument; // if the tree view is not to be displayed at all, then only display the data source // which was given as initial selection - bLimitedTreeEntries |= ( m_bEnableBrowser != sal_True ); + bLimitedTreeEntries |= !m_bEnableBrowser; if ( bLimitedTreeEntries ) { |