diff options
Diffstat (limited to 'winaccessibility/source/UAccCOM')
-rw-r--r-- | winaccessibility/source/UAccCOM/AccComponentBase.cxx | 4 | ||||
-rw-r--r-- | winaccessibility/source/UAccCOM/AccEditableText.cxx | 18 | ||||
-rw-r--r-- | winaccessibility/source/UAccCOM/EnumVariant.cxx | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx b/winaccessibility/source/UAccCOM/AccComponentBase.cxx index 68f800f2c20d..e41123ea33e9 100644 --- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx +++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx @@ -142,7 +142,7 @@ STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * foreground) { return E_FAIL; } - *foreground = (long)GetXInterface()->getForeground(); + *foreground = static_cast<long>(GetXInterface()->getForeground()); return S_OK; @@ -167,7 +167,7 @@ STDMETHODIMP CAccComponentBase::get_background(IA2Color * background) { return E_FAIL; } - *background = (long)GetXInterface()->getBackground(); + *background = static_cast<long>(GetXInterface()->getBackground()); return S_OK; diff --git a/winaccessibility/source/UAccCOM/AccEditableText.cxx b/winaccessibility/source/UAccCOM/AccEditableText.cxx index 7c5b87171fc7..a53d99b0a935 100644 --- a/winaccessibility/source/UAccCOM/AccEditableText.cxx +++ b/winaccessibility/source/UAccCOM/AccEditableText.cxx @@ -295,7 +295,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const : ouName == "CharFontPitch" ) { // Convert to short. - short nValue = (short)ouValue.toInt32(); + short nValue = static_cast<short>(ouValue.toInt32()); rAny.setValue(&nValue, cppu::UnoType<short>::get()); } else if(ouName == "CharHeight" || @@ -313,7 +313,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const : else if(ouName == "CharPosture" ) { // Convert to FontSlant. - css::awt::FontSlant fontSlant = (css::awt::FontSlant)ouValue.toInt32(); + css::awt::FontSlant fontSlant = static_cast<css::awt::FontSlant>(ouValue.toInt32()); rAny.setValue(&fontSlant, cppu::UnoType<css::awt::FontSlant>::get()); } else if(ouName == "ParaTabStops" ) @@ -346,7 +346,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const : if(posComma != -1) { ouSubValue = ouValue.copy(pos + 9, posComma - pos - 9); - tabStop.Alignment = (css::style::TabAlign)ouSubValue.toInt32(); + tabStop.Alignment = static_cast<css::style::TabAlign>(ouSubValue.toInt32()); pos = posComma + 1; // DecimalChar. @@ -439,30 +439,30 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const : if(posComma != -1) { ouSubValue = ouValue.copy(pos + 5, posComma - pos - 5); - lineSpacing.Mode = (sal_Int16)ouSubValue.toInt32(); + lineSpacing.Mode = static_cast<sal_Int16>(ouSubValue.toInt32()); pos = posComma + 1; pos = ouValue.indexOf("Height=", pos); if(pos != -1) { ouSubValue = ouValue.copy(pos + 7); - lineSpacing.Height = (sal_Int16)ouSubValue.toInt32(); + lineSpacing.Height = static_cast<sal_Int16>(ouSubValue.toInt32()); } else { - lineSpacing.Height = (sal_Int16)100; // Default height. + lineSpacing.Height = sal_Int16(100); // Default height. } } else { - lineSpacing.Height = (sal_Int16)100; // Default height. + lineSpacing.Height = sal_Int16(100); // Default height. } } else { // Default Mode and Height. - lineSpacing.Mode = (sal_Int16)0; - lineSpacing.Height = (sal_Int16)100; // Default height. + lineSpacing.Mode = sal_Int16(0); + lineSpacing.Height = sal_Int16(100); // Default height. } // Convert to Any object. diff --git a/winaccessibility/source/UAccCOM/EnumVariant.cxx b/winaccessibility/source/UAccCOM/EnumVariant.cxx index ba2d443ca91f..ec21526e2d19 100644 --- a/winaccessibility/source/UAccCOM/EnumVariant.cxx +++ b/winaccessibility/source/UAccCOM/EnumVariant.cxx @@ -103,7 +103,7 @@ HRESULT STDMETHODCALLTYPE CEnumVariant::Skip(ULONG cElements) SolarMutexGuard g; m_lCurrent += cElements; - if (m_lCurrent > (long)(m_lLBound+m_pXAccessibleSelection->getSelectedAccessibleChildCount())) + if (m_lCurrent > static_cast<long>(m_lLBound+m_pXAccessibleSelection->getSelectedAccessibleChildCount())) { m_lCurrent = m_lLBound+m_pXAccessibleSelection->getSelectedAccessibleChildCount(); return E_FAIL; |