diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:19:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:19:59 +0100 |
commit | ad137adbaea7fcb009b4b22ad00a5e3fd3a89ff5 (patch) | |
tree | 70f1505616b8db732c743bc2f95c9cbc36b0f752 /lotuswordpro/inc | |
parent | 5072e01d077122741f71bef30c4b5caf88fe7793 (diff) |
More loplugin:cstylecast: lotuswordpro
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Idd6bd4f316b916877629579bf187d0f05251263d
Diffstat (limited to 'lotuswordpro/inc')
-rw-r--r-- | lotuswordpro/inc/lwpdefs.hxx | 2 | ||||
-rw-r--r-- | lotuswordpro/inc/lwptools.hxx | 2 | ||||
-rw-r--r-- | lotuswordpro/inc/xfilter/xfcolor.hxx | 4 | ||||
-rw-r--r-- | lotuswordpro/inc/xfilter/xfnumfmt.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lotuswordpro/inc/lwpdefs.hxx b/lotuswordpro/inc/lwpdefs.hxx index 02df11566baf..2cf89eaa696b 100644 --- a/lotuswordpro/inc/lwpdefs.hxx +++ b/lotuswordpro/inc/lwpdefs.hxx @@ -62,7 +62,7 @@ #define INCLUDED_LOTUSWORDPRO_INC_LWPDEFS_HXX #define BAD_OFFSET 0xFFFFFFFFUL -#define BAD_ATOM ((sal_Int32)(-1)) // Invalid Atom ID +#define BAD_ATOM (sal_Int32(-1)) // Invalid Atom ID //Please remove the item from the commented defines after you add the tag to the following enum. enum VO_TYPE diff --git a/lotuswordpro/inc/lwptools.hxx b/lotuswordpro/inc/lwptools.hxx index e8bdc818af77..edbfd4d00949 100644 --- a/lotuswordpro/inc/lwptools.hxx +++ b/lotuswordpro/inc/lwptools.hxx @@ -107,7 +107,7 @@ public: inline double LwpTools::ConvertFromUnits(sal_Int32 nUnits) { - return (double)nUnits/UNITS_PER_INCH; + return static_cast<double>(nUnits)/UNITS_PER_INCH; } inline double LwpTools::ConvertToMetric(double fInch) { diff --git a/lotuswordpro/inc/xfilter/xfcolor.hxx b/lotuswordpro/inc/xfilter/xfcolor.hxx index b7ec2f32cb99..eec54c0a6c35 100644 --- a/lotuswordpro/inc/xfilter/xfcolor.hxx +++ b/lotuswordpro/inc/xfilter/xfcolor.hxx @@ -69,12 +69,12 @@ class XFColor { public: - XFColor():m_nRed((sal_Int8)0),m_nGreen((sal_Int8)0),m_nBlue((sal_Int8)0) + XFColor():m_nRed(sal_Int8(0)),m_nGreen(sal_Int8(0)),m_nBlue(sal_Int8(0)) { m_bValid = false; } XFColor(sal_Int32 red, sal_Int32 green, sal_Int32 blue) - :m_nRed((sal_Int8)red),m_nGreen((sal_Int8)green),m_nBlue((sal_Int8)blue) + :m_nRed(static_cast<sal_Int8>(red)),m_nGreen(static_cast<sal_Int8>(green)),m_nBlue(static_cast<sal_Int8>(blue)) { m_bValid = true; } diff --git a/lotuswordpro/inc/xfilter/xfnumfmt.hxx b/lotuswordpro/inc/xfilter/xfnumfmt.hxx index dad4b0018749..3e3f70d370a1 100644 --- a/lotuswordpro/inc/xfilter/xfnumfmt.hxx +++ b/lotuswordpro/inc/xfilter/xfnumfmt.hxx @@ -136,7 +136,7 @@ public: pAttrList->AddAttribute( "style:num-suffix", m_strSuffix ); pAttrList->AddAttribute( "style:num-format", m_strFormat ); if( m_nStartValue != 0 ) - pAttrList->AddAttribute( "text:start-value", OUString::number((sal_Int32)m_nStartValue) ); + pAttrList->AddAttribute( "text:start-value", OUString::number(static_cast<sal_Int32>(m_nStartValue)) ); } private: OUString m_strPrefix; |