vcl/osx/salframeview.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit ec92fc01fe3500fb82b1e99cc6ff59dc146cfc5c Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Aug 28 21:11:55 2017 +0200 loplugin:implicitboolconversion Change-Id: Ie6c9b4c98d1fab26f79e7549ebeb03aa81a1dd1d 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits