summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-14 12:00:19 +0200
committerNoel Grandin <noel@peralex.com>2015-05-14 12:00:41 +0200
commit68041a0546fc6a05608411365c8382937aafac79 (patch)
treec0676833d41c491956c71b946f7c69ca0a34f734 /vcl/osx
parent741d9990bf9d9dfcba1166a12ffb1d846c912181 (diff)
convert INPUTCONTEXT_ constants to scoped enum
Change-Id: I5b99e42a3e85527b27d515c468d2ed66386fc9df
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salframe.cxx6
-rw-r--r--vcl/osx/salframeview.mm2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index b23b3e64ff75..af1327f3d568 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -76,7 +76,7 @@ AquaSalFrame::AquaSalFrame( SalFrame* pParent, sal_uLong salFrameStyle ) :
mePointerStyle( POINTER_ARROW ),
mnTrackingRectTag( 0 ),
mrClippingPath( 0 ),
- mnICOptions( 0 )
+ mnICOptions( InputContextFlags::NONE )
{
maSysData.nSize = sizeof( SystemEnvData );
@@ -919,13 +919,13 @@ void AquaSalFrame::SetInputContext( SalInputContext* pContext )
{
if (!pContext)
{
- mnICOptions = 0;
+ mnICOptions = InputContextFlags::NONE;
return;
}
mnICOptions = pContext->mnOptions;
- if(!(pContext->mnOptions & SAL_INPUTCONTEXT_TEXT))
+ if(!(pContext->mnOptions & InputContextFlags::Text))
return;
}
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 2867295bbc6f..8036a0f11f9e 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -1684,7 +1684,7 @@ private:
#if OSL_DEBUG_LEVEL > 1
// fprintf( stderr, "SalFrameView: doCommandBySelector %s\n", (char*)aSelector );
#endif
- if( (mpFrame->mnICOptions & SAL_INPUTCONTEXT_TEXT) != 0 &&
+ if( (mpFrame->mnICOptions & InputContextFlags::Text) &&
aSelector != NULL && [self respondsToSelector: aSelector] )
{
[self performSelector: aSelector];