Kaydet (Commit) 915dc38b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I718cbc10c992b0515d3c4e2a62e38a6331a288d0
üst 6dbcb1a3
...@@ -417,7 +417,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const : ...@@ -417,7 +417,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const :
} }
// Assign to Any object. // Assign to Any object.
rAny.setValue(&seqTabStop, getCppuType((Sequence< ::com::sun::star::style::TabStop >*)0)); rAny.setValue(&seqTabStop, cppu::UnoType<Sequence< ::com::sun::star::style::TabStop >>::get());
} }
else if(ouName.equals(L"ParaLineSpacing") ) else if(ouName.equals(L"ParaLineSpacing") )
{ {
......
...@@ -2805,7 +2805,7 @@ void CMAccessible::get_OLECHARFromAny(Any& pAny, OLECHAR* pChar) ...@@ -2805,7 +2805,7 @@ void CMAccessible::get_OLECHARFromAny(Any& pAny, OLECHAR* pChar)
} }
case TypeClass_SEQUENCE: case TypeClass_SEQUENCE:
{ {
if(pAny.getValueType() == getCppuType( (Sequence< ::rtl::OUString > *)0 ) ) if(pAny.getValueType() == cppu::UnoType<Sequence< ::rtl::OUString >>::get())
{ {
Sequence < ::rtl::OUString > val; Sequence < ::rtl::OUString > val;
pAny >>= val; pAny >>= val;
...@@ -2820,7 +2820,7 @@ void CMAccessible::get_OLECHARFromAny(Any& pAny, OLECHAR* pChar) ...@@ -2820,7 +2820,7 @@ void CMAccessible::get_OLECHARFromAny(Any& pAny, OLECHAR* pChar)
} }
wcscpy(pChar, pString.getStr()); wcscpy(pChar, pString.getStr());
} }
else if (pAny.getValueType() == getCppuType( (Sequence< ::com::sun::star::style::TabStop >* )0 ) ) else if (pAny.getValueType() == cppu::UnoType<Sequence< ::com::sun::star::style::TabStop >>::get())
{ {
Sequence < ::com::sun::star::style::TabStop > val; Sequence < ::com::sun::star::style::TabStop > val;
pAny >>= val; pAny >>= val;
......
...@@ -440,7 +440,7 @@ void AccObject::SetValue( Any pAny ) ...@@ -440,7 +440,7 @@ void AccObject::SetValue( Any pAny )
pAny >>= strValue ; pAny >>= strValue ;
} }
else if(pAny.getValueType() == getCppuType( (Sequence< ::rtl::OUString > *)0 ) ) else if(pAny.getValueType() == cppu::UnoType<Sequence< ::rtl::OUString >>::get())
{ {
Sequence< ::rtl::OUString > val; Sequence< ::rtl::OUString > val;
if (pAny >>= val) if (pAny >>= val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment