summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-14 13:41:38 +0200
committerNoel Grandin <noel@peralex.com>2016-03-15 08:27:25 +0200
commitb47cb646ff2a62fcd3fac0e453a7261bbaefbcb7 (patch)
tree49a2dc78e998baa77212776d7d94fb8d72dc0f00 /vcl
parent89e0663c55f7f1763536a345d63111115c71ef26 (diff)
loplugin:constantparam
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/cursor.cxx7
-rw-r--r--vcl/source/window/mouse.cxx2
-rw-r--r--vcl/source/window/status.cxx4
-rw-r--r--vcl/source/window/window.cxx2
-rw-r--r--vcl/source/window/winproc.cxx4
5 files changed, 9 insertions, 10 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 0e8a6771c3ae..1318d535d6d8 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -227,10 +227,9 @@ void vcl::Cursor::ImplShow()
ImplDoShow( true/*bDrawDirect*/, false );
}
-void vcl::Cursor::ImplHide( bool i_bStopTimer )
+void vcl::Cursor::ImplHide()
{
- assert( i_bStopTimer );
- ImplDoHide( !i_bStopTimer );
+ ImplDoHide( false );
}
void vcl::Cursor::ImplResume( bool bRestore )
@@ -325,7 +324,7 @@ void vcl::Cursor::Hide()
if ( mbVisible )
{
mbVisible = false;
- ImplHide( true );
+ ImplHide();
}
}
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx
index 94a8f9757e36..892d419074a2 100644
--- a/vcl/source/window/mouse.cxx
+++ b/vcl/source/window/mouse.cxx
@@ -320,7 +320,7 @@ void Window::ImplGrabFocus( GetFocusFlags nFlags )
{
// Cursor hidden
if ( pOldFocusWindow->mpWindowImpl->mpCursor )
- pOldFocusWindow->mpWindowImpl->mpCursor->ImplHide( true );
+ pOldFocusWindow->mpWindowImpl->mpCursor->ImplHide();
}
// !!!!! due to old SV-Office Activate/Deactivate handling
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 9a45ee6d9d6a..db6c61739224 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -168,9 +168,9 @@ void StatusBar::dispose()
Window::dispose();
}
-void StatusBar::AdjustItemWidthsForHiDPI(bool bAdjustHiDPI)
+void StatusBar::AdjustItemWidthsForHiDPI()
{
- mbAdjustHiDPI = bAdjustHiDPI;
+ mbAdjustHiDPI = true;
}
void StatusBar::ApplySettings(vcl::RenderContext& rRenderContext)
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 2e5419429d42..4e9a161bf6b6 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3062,7 +3062,7 @@ void Window::SetCursor( vcl::Cursor* pCursor )
if ( mpWindowImpl->mpCursor != pCursor )
{
if ( mpWindowImpl->mpCursor )
- mpWindowImpl->mpCursor->ImplHide( true );
+ mpWindowImpl->mpCursor->ImplHide();
mpWindowImpl->mpCursor = pCursor;
if ( pCursor )
pCursor->ImplShow();
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 4fba05c55662..b2de412866d4 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -1786,7 +1786,7 @@ IMPL_LINK_NOARG_TYPED(vcl::Window, ImplAsyncFocusHdl, void*, void)
pSVData->maWinData.mpFocusWin = nullptr;
if ( pFocusWin->ImplGetWindowImpl()->mpCursor )
- pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide( true );
+ pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide();
// Deaktivate rufen
vcl::Window* pOldFocusWindow = pFocusWin;
@@ -1873,7 +1873,7 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow )
vcl::Window* pFocusWin = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin;
if ( pFocusWin && pFocusWin->ImplGetWindowImpl()->mpCursor )
- pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide( true );
+ pFocusWin->ImplGetWindowImpl()->mpCursor->ImplHide();
}
struct DelayedCloseEvent