summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/vba/vbaformat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbaformat.cxx')
-rw-r--r--sc/source/ui/vba/vbaformat.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx
index 941c840d1e94..cc83083d892b 100644
--- a/sc/source/ui/vba/vbaformat.cxx
+++ b/sc/source/ui/vba/vbaformat.cxx
@@ -664,16 +664,16 @@ ScVbaFormat< Ifc... >::setReadingOrder( const uno::Any& ReadingOrder )
switch(nReadingOrder)
{
case excel::Constants::xlLTR:
- aVal <<= (sal_Int16) text::WritingMode_LR_TB;
+ aVal <<= sal_Int16(text::WritingMode_LR_TB);
break;
case excel::Constants::xlRTL:
- aVal <<= (sal_Int16) text::WritingMode_RL_TB;
+ aVal <<= sal_Int16(text::WritingMode_RL_TB);
break;
case excel::Constants::xlContext:
// TODO implement xlContext
// Reading order has to depend on the language of the first letter
// written.
- aVal <<= (sal_Int16) text::WritingMode_LR_TB;
+ aVal <<= sal_Int16(text::WritingMode_LR_TB);
break;
default:
DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString());