summaryrefslogtreecommitdiff
path: root/vcl/osx/salframeview.mm
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-09 17:07:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-11 07:14:34 +0000
commit63ba54a168dbc777cdcec2393be476bdd5f79bc1 (patch)
tree48de29007d02ba4a982a50a1bd0138460e215c23 /vcl/osx/salframeview.mm
parent7b9ea3348ac08d775ae452132239853724c65a41 (diff)
convert EXTTEXTINPUT_ATTR to scoped enum
Change-Id: I94706bdea91d367fc8c2bbd482f6b4d8f55449d7 Reviewed-on: https://gerrit.libreoffice.org/24821 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/osx/salframeview.mm')
-rw-r--r--vcl/osx/salframeview.mm10
1 files changed, 5 insertions, 5 deletions
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<sal_uInt16> aInputFlags = std::vector<sal_uInt16>( std::max( 1, len ), 0 );
+ std::vector<ExtTextInputAttr> aInputFlags = std::vector<ExtTextInputAttr>( 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;
}
}