From 63ba54a168dbc777cdcec2393be476bdd5f79bc1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 9 May 2016 17:07:54 +0200 Subject: convert EXTTEXTINPUT_ATTR to scoped enum Change-Id: I94706bdea91d367fc8c2bbd482f6b4d8f55449d7 Reviewed-on: https://gerrit.libreoffice.org/24821 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/osx/salframeview.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/osx') diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index 6906f9be3eee..0da1737e7629 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -1610,7 +1610,7 @@ private: if( len > 0 ) { NSString *pString = [aString string]; OUString aInsertString( GetOUString( pString ) ); - std::vector aInputFlags = std::vector( std::max( 1, len ), 0 ); + std::vector aInputFlags = std::vector( std::max( 1, len ), ExtTextInputAttr::NONE ); for ( int i = 0; i < len; i++ ) { unsigned int nUnderlineValue; @@ -1621,16 +1621,16 @@ private: switch (nUnderlineValue & 0xff) { case NSUnderlineStyleSingle: - aInputFlags[i] = EXTTEXTINPUT_ATTR_UNDERLINE; + aInputFlags[i] = ExtTextInputAttr::Underline; break; case NSUnderlineStyleThick: - aInputFlags[i] = EXTTEXTINPUT_ATTR_UNDERLINE | EXTTEXTINPUT_ATTR_HIGHLIGHT; + aInputFlags[i] = ExtTextInputAttr::Underline | ExtTextInputAttr::Highlight; break; case NSUnderlineStyleDouble: - aInputFlags[i] = EXTTEXTINPUT_ATTR_BOLDUNDERLINE; + aInputFlags[i] = ExtTextInputAttr::BoldUnderline; break; default: - aInputFlags[i] = EXTTEXTINPUT_ATTR_HIGHLIGHT; + aInputFlags[i] = ExtTextInputAttr::Highlight; break; } } -- cgit