[Libreoffice-commits] core.git: vcl/source
Julien Nabet
serval2412 at yahoo.fr
Sun Aug 11 14:13:38 PDT 2013
vcl/source/window/window.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 87fe6ee8ebeb89f41b375594d1e40a1f9d2296b5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Aug 11 23:12:53 2013 +0200
Reduce scope + convert sal_Bool to bool
Change-Id: Ib7262a046479faba355c447ebc6bdce008268804
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 5a7d571..28c157e 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3875,9 +3875,8 @@ void Window::ImplCallFocusChangeActivate( Window* pNewOverlapWindow,
ImplSVData* pSVData = ImplGetSVData();
Window* pNewRealWindow;
Window* pOldRealWindow;
- Window* pLastRealWindow;
- sal_Bool bCallActivate = sal_True;
- sal_Bool bCallDeactivate = sal_True;
+ bool bCallActivate = true;
+ bool bCallDeactivate = true;
pOldRealWindow = pOldOverlapWindow->ImplGetWindow();
pNewRealWindow = pNewOverlapWindow->ImplGetWindow();
@@ -3888,7 +3887,7 @@ void Window::ImplCallFocusChangeActivate( Window* pNewOverlapWindow,
!pNewRealWindow->GetActivateMode() )
{
pSVData->maWinData.mpLastDeacWin = pOldOverlapWindow;
- bCallDeactivate = sal_False;
+ bCallDeactivate = false;
}
}
else if ( (pNewRealWindow->GetType() != WINDOW_FLOATINGWINDOW) ||
@@ -3897,10 +3896,10 @@ void Window::ImplCallFocusChangeActivate( Window* pNewOverlapWindow,
if ( pSVData->maWinData.mpLastDeacWin )
{
if ( pSVData->maWinData.mpLastDeacWin == pNewOverlapWindow )
- bCallActivate = sal_False;
+ bCallActivate = false;
else
{
- pLastRealWindow = pSVData->maWinData.mpLastDeacWin->ImplGetWindow();
+ Window* pLastRealWindow = pSVData->maWinData.mpLastDeacWin->ImplGetWindow();
pSVData->maWinData.mpLastDeacWin->mpWindowImpl->mbActive = sal_False;
pSVData->maWinData.mpLastDeacWin->Deactivate();
if ( pLastRealWindow != pSVData->maWinData.mpLastDeacWin )
More information about the Libreoffice-commits
mailing list