diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-03 10:55:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-03 11:05:13 +0000 |
commit | 0fe6f1a196b70f0ba4c948389b2ef9b1e77187b8 (patch) | |
tree | a35bd01d1c9a015cbcca380bc5cb177abc83e3fe /vcl/unx/gtk/a11y/atktextattributes.cxx | |
parent | d68927c7fd4346311dce58e6059186633996d68b (diff) |
use actual UNO enums in vcl..xmlsecurity
Change-Id: Id862544f27ebcbe8363f93dc83192d0f0cddb5cc
Reviewed-on: https://gerrit.libreoffice.org/36041
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk/a11y/atktextattributes.cxx')
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx index 1ee48d456c17..5a1819b2319f 100644 --- a/vcl/unx/gtk/a11y/atktextattributes.cxx +++ b/vcl/unx/gtk/a11y/atktextattributes.cxx @@ -387,7 +387,7 @@ Adjust2Justification(const uno::Any& rAny) { const gchar * value = nullptr; - switch( rAny.get<short>() ) + switch( (style::ParagraphAdjust)rAny.get<short>() ) { case style::ParagraphAdjust_LEFT: value = "left"; @@ -419,7 +419,7 @@ Adjust2Justification(const uno::Any& rAny) static bool Justification2Adjust( uno::Any& rAny, const gchar * value ) { - short nParagraphAdjust; + style::ParagraphAdjust nParagraphAdjust; if( strncmp( value, STRNCMP_PARAM( "left" ) ) == 0 ) nParagraphAdjust = style::ParagraphAdjust_LEFT; @@ -432,7 +432,7 @@ Justification2Adjust( uno::Any& rAny, const gchar * value ) else return false; - rAny <<= nParagraphAdjust; + rAny <<= (short)nParagraphAdjust; return true; } |