diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-28 21:11:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-28 21:11:55 +0200 |
commit | ec92fc01fe3500fb82b1e99cc6ff59dc146cfc5c (patch) | |
tree | 5e5094181197910d66afa75b20f1fd3229a69ccb /vcl/osx/salframeview.mm | |
parent | 317e3d43c937e7d3bff61b100c08f04c837c4d25 (diff) |
loplugin:implicitboolconversion
Change-Id: Ie6c9b4c98d1fab26f79e7549ebeb03aa81a1dd1d
Diffstat (limited to 'vcl/osx/salframeview.mm')
-rw-r--r-- | vcl/osx/salframeview.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index a20f3b7a6e5a..35f55c6e2f17 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -1523,7 +1523,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP { SolarMutexGuard aGuard; - long nRet = 0; + bool nRet = false; if( AquaSalFrame::isAlive( mpFrame ) ) { SalKeyEvent aEvent; @@ -1533,11 +1533,11 @@ SAL_WNODEPRECATED_DECLARATIONS_POP nRet = mpFrame->CallCallback( SalEvent::KeyInput, &aEvent ); std::map< NSEvent*, bool >::iterator it = GetSalData()->maKeyEventAnswer.find( mpLastEvent ); if( it != GetSalData()->maKeyEventAnswer.end() ) - it->second = nRet != 0; + it->second = nRet; if( AquaSalFrame::isAlive( mpFrame ) ) mpFrame->CallCallback( SalEvent::KeyUp, &aEvent ); } - return nRet ? YES : NO; + return nRet; } |