[Libreoffice-commits] core.git: filter/source
Stephan Bergmann
sbergman at redhat.com
Thu Jan 11 16:32:26 UTC 2018
filter/source/t602/t602filter.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 361dd2576a09fbda83f3ce9a26ecb590c38f74e3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jan 11 10:46:59 2018 +0100
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 <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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<sal_Int32>(_val);\
_prop->setPropertyValue(_nam, any);
#define propShort_(_prop,_nam,_val) \
- any <<= (sal_Int16)_val;\
+ any <<= static_cast<sal_Int16>(_val);\
_prop->setPropertyValue(_nam, any);
#define propBool_(_prop,_nam,_val) \
any <<= _val;\
More information about the Libreoffice-commits
mailing list