From 7669cbf594b6bc1cc2731f2da6a0d17a0e9954fe Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 1 Aug 2015 15:20:42 +0200 Subject: sal_uInt16 to sal_Int32 Change-Id: Ic2af80d2335875672fee5b61083b1f7f9703dac7 --- accessibility/source/extended/textwindowaccessibility.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'accessibility/source') diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index c694a0bf4ae0..be6a97629eca 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1324,14 +1324,12 @@ void Document::changeParagraphAttributes( if ( rAttributeSet[i].Name == "CharColor" ) m_rEngine.SetAttrib(::TextAttribFontColor( mapFontColor(rAttributeSet[i].Value)), - nNumber, static_cast< ::sal_uInt16 >(nBegin), - static_cast< ::sal_uInt16 >(nEnd)); + nNumber, nBegin, nEnd); // XXX numeric overflow (2x) else if ( rAttributeSet[i].Name == "CharWeight" ) m_rEngine.SetAttrib(::TextAttribFontWeight( mapFontWeight(rAttributeSet[i].Value)), - nNumber, static_cast< ::sal_uInt16 >(nBegin), - static_cast< ::sal_uInt16 >(nEnd)); + nNumber, nBegin, nEnd); // XXX numeric overflow (2x) } } -- cgit