Kaydet (Commit) ec92fc01 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:implicitboolconversion

Change-Id: Ie6c9b4c98d1fab26f79e7549ebeb03aa81a1dd1d
üst 317e3d43
...@@ -1523,7 +1523,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP ...@@ -1523,7 +1523,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
long nRet = 0; bool nRet = false;
if( AquaSalFrame::isAlive( mpFrame ) ) if( AquaSalFrame::isAlive( mpFrame ) )
{ {
SalKeyEvent aEvent; SalKeyEvent aEvent;
...@@ -1533,11 +1533,11 @@ SAL_WNODEPRECATED_DECLARATIONS_POP ...@@ -1533,11 +1533,11 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
nRet = mpFrame->CallCallback( SalEvent::KeyInput, &aEvent ); nRet = mpFrame->CallCallback( SalEvent::KeyInput, &aEvent );
std::map< NSEvent*, bool >::iterator it = GetSalData()->maKeyEventAnswer.find( mpLastEvent ); std::map< NSEvent*, bool >::iterator it = GetSalData()->maKeyEventAnswer.find( mpLastEvent );
if( it != GetSalData()->maKeyEventAnswer.end() ) if( it != GetSalData()->maKeyEventAnswer.end() )
it->second = nRet != 0; it->second = nRet;
if( AquaSalFrame::isAlive( mpFrame ) ) if( AquaSalFrame::isAlive( mpFrame ) )
mpFrame->CallCallback( SalEvent::KeyUp, &aEvent ); mpFrame->CallCallback( SalEvent::KeyUp, &aEvent );
} }
return nRet ? YES : NO; return nRet;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment