diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:00:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:23 +0100 |
commit | 608953c42590c3100eaa46ba686560403d1b8d03 (patch) | |
tree | a0b706f6199e17174fc61b8948c5b63e8490ff72 /sd/source/ui/dlg/LayerTabBar.cxx | |
parent | e7d1a81ee3befa9e9444fe5bf5c4ced9c98eecf5 (diff) |
bool improvements
Change-Id: Icac34936bdb551ad517170fd497212513719d2aa
Diffstat (limited to 'sd/source/ui/dlg/LayerTabBar.cxx')
-rw-r--r-- | sd/source/ui/dlg/LayerTabBar.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/LayerTabBar.cxx b/sd/source/ui/dlg/LayerTabBar.cxx index a27b4885c9f4..36c53ef424bf 100644 --- a/sd/source/ui/dlg/LayerTabBar.cxx +++ b/sd/source/ui/dlg/LayerTabBar.cxx @@ -139,7 +139,7 @@ sal_Int8 LayerTabBar::AcceptDrop( const AcceptDropEvent& rEvt ) sal_uInt16 nPageId = SDRPAGE_NOTFOUND; Point aPos( PixelToLogic( rEvt.maPosPixel ) ); sal_uInt16 nLayerId = pDrViewSh->GetView()->GetDoc().GetLayerAdmin().GetLayerID( - GetPageText( GetPageId( aPos ) ), sal_False ); + GetPageText( GetPageId( aPos ) ), false ); nRet = pDrViewSh->AcceptDrop( rEvt, *this, NULL, nPageId, nLayerId ); @@ -156,7 +156,7 @@ sal_Int8 LayerTabBar::ExecuteDrop( const ExecuteDropEvent& rEvt ) { sal_uInt16 nPageId = SDRPAGE_NOTFOUND; sal_uInt16 nLayerId = pDrViewSh->GetView()->GetDoc().GetLayerAdmin().GetLayerID( - GetPageText( GetPageId( PixelToLogic( rEvt.maPosPixel ) ) ), sal_False ); + GetPageText( GetPageId( PixelToLogic( rEvt.maPosPixel ) ) ), false ); sal_Int8 nRet = pDrViewSh->ExecuteDrop( rEvt, *this, NULL, nPageId, nLayerId ); EndSwitchPage(); @@ -216,7 +216,7 @@ long LayerTabBar::AllowRenaming() OUString aNewName( GetEditText() ); if (aNewName.isEmpty() || - (rLayerAdmin.GetLayer( aNewName, sal_False ) && aLayerName != aNewName) ) + (rLayerAdmin.GetLayer( aNewName, false ) && aLayerName != aNewName) ) { // Name already exists WarningBox aWarningBox( &pDrViewSh->GetViewFrame()->GetWindow(), WinBits( WB_OK ), @@ -255,7 +255,7 @@ void LayerTabBar::EndRenaming() SdDrawDocument& rDoc = pView->GetDoc(); OUString aLayerName = pView->GetActiveLayer(); SdrLayerAdmin& rLayerAdmin = rDoc.GetLayerAdmin(); - SdrLayer* pLayer = rLayerAdmin.GetLayer(aLayerName, sal_False); + SdrLayer* pLayer = rLayerAdmin.GetLayer(aLayerName, false); if (pLayer) { @@ -295,7 +295,7 @@ void LayerTabBar::EndRenaming() void LayerTabBar::ActivatePage() { - if ( /*IsInSwitching*/ 1 && pDrViewSh!=NULL) + if ( /*IsInSwitching*/ true && pDrViewSh!=NULL) { SfxDispatcher* pDispatcher = pDrViewSh->GetViewFrame()->GetDispatcher(); |