From 361dd2576a09fbda83f3ce9a26ecb590c38f74e3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 11 Jan 2018 10:46:59 +0100 Subject: Replace some C-style casts in ugly macros with static_cast ...in preparation for a to-be-committed improved loplugin:cstylecast doing such rewriting automatically, but giving up on these macros Change-Id: I6d1400fc2326bafe850307fb840829619362e0fd Reviewed-on: https://gerrit.libreoffice.org/47751 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- filter/source/t602/t602filter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/source/t602') diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx index 38ca6230bb70..2ed3b960f413 100644 --- a/filter/source/t602/t602filter.cxx +++ b/filter/source/t602/t602filter.cxx @@ -916,10 +916,10 @@ bool T602ImportFilterDialog::OptionsDlg() { Any any; #define propInt_(_prop,_nam,_val) \ - any <<= (sal_Int32)_val;\ + any <<= static_cast(_val);\ _prop->setPropertyValue(_nam, any); #define propShort_(_prop,_nam,_val) \ - any <<= (sal_Int16)_val;\ + any <<= static_cast(_val);\ _prop->setPropertyValue(_nam, any); #define propBool_(_prop,_nam,_val) \ any <<= _val;\ -- cgit