diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:07:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:07:26 +0100 |
commit | 17fbc3f8fd4ae04fbb0cb94514a41ee3b6bc7274 (patch) | |
tree | 1f099a6f3ef7773bb375ce135886b81c9e3fa3f8 /accessibility | |
parent | 956c04c49d2150328fc0d402d6d156da22d6dfcf (diff) |
More loplugin:cstylecast: accessibility
Change-Id: I5bc8985586bc13874ba039a60e67cb2d347e6742
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 922ba3721f7a..7b001a5a07e7 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -1127,7 +1127,7 @@ namespace accessibility else if ( nValue > nValueMax ) nValue = nValueMax; - pBox->SetCheckButtonState(pEntry, (SvButtonState) nValue ); + pBox->SetCheckButtonState(pEntry, static_cast<SvButtonState>(nValue) ); bReturn = true; } } diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index c418ab5c7abf..24433d0505bc 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1001,7 +1001,7 @@ Document::retrieveCharacterAttributes( //character alignment aAttribs[i].Name = "ParaAdjust"; aAttribs[i].Handle = -1; - aAttribs[i].Value <<= (sal_Int16)m_rEngine.GetTextAlign(); + aAttribs[i].Value <<= static_cast<sal_Int16>(m_rEngine.GetTextAlign()); aAttribs[i].State = css::beans::PropertyState_DIRECT_VALUE; i++; |