summaryrefslogtreecommitdiff
path: root/sw/source/uibase/envelp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:41 +0100
commit0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (patch)
treed9b77eece17b7b144a4ea50592b639b9f7c87095 /sw/source/uibase/envelp
parent506856ca50e676520bcc80a8b498355663d0388f (diff)
More loplugin:cstylecast: sw
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: I0f49d21dfdf82742f11b27709f74294feb1e419e
Diffstat (limited to 'sw/source/uibase/envelp')
-rw-r--r--sw/source/uibase/envelp/envimg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/envelp/envimg.cxx b/sw/source/uibase/envelp/envimg.cxx
index aa6c03d2ae7a..4830eb7f1e7b 100644
--- a/sw/source/uibase/envelp/envimg.cxx
+++ b/sw/source/uibase/envelp/envimg.cxx
@@ -291,7 +291,7 @@ bool SwEnvItem::QueryValue( Any& rVal, sal_uInt8 nMemberId ) const
case MID_ENV_SEND_FROM_TOP : rVal <<= m_nSendFromTop; break;
case MID_ENV_WIDTH : rVal <<= m_nWidth; break;
case MID_ENV_HEIGHT : rVal <<= m_nHeight; break;
- case MID_ENV_ALIGN : rVal <<= (sal_Int16) m_eAlign; break;
+ case MID_ENV_ALIGN : rVal <<= static_cast<sal_Int16>(m_eAlign); break;
case MID_ENV_PRINT_FROM_ABOVE : rVal <<= m_bPrintFromAbove; break;
case MID_ENV_SHIFT_RIGHT : rVal <<= m_nShiftRight; break;
case MID_ENV_SHIFT_DOWN : rVal <<= m_nShiftDown; break;