summaryrefslogtreecommitdiff
path: root/vcl/osx/a11ytextattributeswrapper.mm
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx/a11ytextattributeswrapper.mm')
-rw-r--r--vcl/osx/a11ytextattributeswrapper.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm
index 090f429df30f..4a7de4824b17 100644
--- a/vcl/osx/a11ytextattributeswrapper.mm
+++ b/vcl/osx/a11ytextattributeswrapper.mm
@@ -141,7 +141,7 @@ using namespace ::com::sun::star::uno;
+(int)convertItalicStyle:(PropertyValue)property {
int italicStyle = NSUnitalicFontMask;
- sal_Int16 value = property.Value.get< ::css_awt::FontSlant>();
+ ::css_awt::FontSlant value = property.Value.get< ::css_awt::FontSlant>();
if ( value == ::css_awt::FontSlant_ITALIC ) {
italicStyle = NSItalicFontMask;
}
@@ -279,7 +279,7 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
// 'NSJustifiedTextAlignment' is deprecated: first deprecated in macOS 10.12
// 'NSLeftTextAlignment' is deprecated: first deprecated in macOS 10.12
// 'NSRightTextAlignment' is deprecated: first deprecated in macOS 10.12
- switch(alignment) {
+ switch((css::style::ParagraphAdjust)alignment) {
case css::style::ParagraphAdjust_RIGHT : textAlignment = [NSNumber numberWithInteger:NSRightTextAlignment] ; break;
case css::style::ParagraphAdjust_CENTER: textAlignment = [NSNumber numberWithInteger:NSCenterTextAlignment] ; break;
case css::style::ParagraphAdjust_BLOCK : textAlignment = [NSNumber numberWithInteger:NSJustifiedTextAlignment]; break;