summaryrefslogtreecommitdiff
path: root/vcl/osx/salframe.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-15 16:46:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-15 19:29:54 +0100
commit72bc1fad399f78c48b186dee8759e12654cdf5d5 (patch)
treedd11834938445223a69c62986987b00be8228c37 /vcl/osx/salframe.cxx
parent565bcfbdcbebc68c07eee9a30e0f82b0fdf7e846 (diff)
loplugin:fakebool and loplugin:consttobool (macOS)
Change-Id: I42d6546a9a400d8edb9ecef82614c6c88d4e6e83 Reviewed-on: https://gerrit.libreoffice.org/82806 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx/salframe.cxx')
-rw-r--r--vcl/osx/salframe.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 1bd88a810bc0..ce5ada142911 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -291,20 +291,20 @@ SalGraphics* AquaSalFrame::AcquireGraphics()
mpGraphics->SetWindowGraphics( this );
}
- mbGraphics = TRUE;
+ mbGraphics = true;
return mpGraphics;
}
void AquaSalFrame::ReleaseGraphics( SalGraphics *pGraphics )
{
SAL_WARN_IF( pGraphics != mpGraphics, "vcl", "graphics released on wrong frame" );
- mbGraphics = FALSE;
+ mbGraphics = false;
}
bool AquaSalFrame::PostEvent(std::unique_ptr<ImplSVEvent> pData)
{
GetSalData()->mpInstance->PostEvent( this, pData.release(), SalEvent::UserEvent );
- return TRUE;
+ return true;
}
void AquaSalFrame::SetTitle(const OUString& rTitle)
@@ -680,9 +680,9 @@ bool AquaSalFrame::GetWindowState( SalFrameState* pState )
pState->mnWidth = maGeometry.nWidth;
pState->mnHeight = maGeometry.nHeight;
pState->mnState = WindowStateState::Normal;
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
OSX_SALDATA_RUNINMAIN_UNION( GetWindowState( pState ), boolean )
@@ -708,7 +708,7 @@ bool AquaSalFrame::GetWindowState( SalFrameState* pState )
else
pState->mnState = WindowStateState::Maximized;
- return TRUE;
+ return true;
}
void AquaSalFrame::SetScreenNumber(unsigned int nScreen)
@@ -1543,7 +1543,7 @@ bool AquaSalFrame::SetPluginParent( SystemParentData* )
bool AquaSalFrame::MapUnicodeToKeyCode( sal_Unicode , LanguageType , vcl::KeyCode& )
{
// not supported yet
- return FALSE;
+ return false;
}
LanguageType AquaSalFrame::GetInputLanguage()
@@ -1593,7 +1593,7 @@ void AquaSalFrame::SetParent( SalFrame* pNewParent )
bool bShown = mbShown;
// remove from child list
if (bShown)
- Show(FALSE);
+ Show(false);
mpParent = static_cast<AquaSalFrame*>(pNewParent);
// insert to correct parent and paint
Show( bShown );