diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-09 16:47:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-09 17:19:33 +0100 |
commit | 98da362f1691734437cb37f902fb1cdab613ac0a (patch) | |
tree | 8d82de35c51544c884e64c76ca648a3e949c1877 /vcl/source/window/window2.cxx | |
parent | ce90a3cb3dcf35d8b7dbf886b62bb3ebc2c1ebef (diff) |
EndSaveFocus return value is unused
Change-Id: I746e47b118a8b8c687c435371e2bdf2dc22cbf88
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r-- | vcl/source/window/window2.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index fa9fc15e55f3..2878e0ab09bc 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -421,21 +421,17 @@ VclPtr<vcl::Window> Window::SaveFocus() return nullptr; } -bool Window::EndSaveFocus( const VclPtr<vcl::Window>& xFocusWin, bool bRestore ) +void Window::EndSaveFocus( const VclPtr<vcl::Window>& xFocusWin, bool bRestore ) { if ( xFocusWin == nullptr ) - return false; + return; else { - bool bOK = true; if ( !xFocusWin->IsDisposed() ) { if ( bRestore ) xFocusWin->GrabFocus(); } - else - bOK = !bRestore; - return bOK; } } |