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

Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I1693826962a0551396fd5691dc4a98f0646bade3
üst a55166cc
...@@ -117,7 +117,7 @@ void SvtTabAppearanceCfg::ImplCommit() ...@@ -117,7 +117,7 @@ void SvtTabAppearanceCfg::ImplCommit()
Sequence<Any> aValues(rNames.getLength()); Sequence<Any> aValues(rNames.getLength());
Any* pValues = aValues.getArray(); Any* pValues = aValues.getArray();
const Type& rType = ::getBooleanCppuType(); const Type& rType = cppu::UnoType<bool>::get();
for(int nProp = 0; nProp < rNames.getLength(); nProp++) for(int nProp = 0; nProp < rNames.getLength(); nProp++)
{ {
switch(nProp) switch(nProp)
......
...@@ -270,7 +270,7 @@ void ColorConfig_Impl::ImplCommit() ...@@ -270,7 +270,7 @@ void ColorConfig_Impl::ImplCommit()
beans::PropertyValue* pPropValues = aPropValues.getArray(); beans::PropertyValue* pPropValues = aPropValues.getArray();
const OUString* pColorNames = aColorNames.getConstArray(); const OUString* pColorNames = aColorNames.getConstArray();
sal_Int32 nIndex = 0; sal_Int32 nIndex = 0;
const uno::Type& rBoolType = ::getBooleanCppuType(); const uno::Type& rBoolType = cppu::UnoType<bool>::get();
for(int i = 0; i < 2 * ColorConfigEntryCount && aColorNames.getLength() > nIndex; i+= 2) for(int i = 0; i < 2 * ColorConfigEntryCount && aColorNames.getLength() > nIndex; i+= 2)
{ {
pPropValues[nIndex].Name = pColorNames[nIndex]; pPropValues[nIndex].Name = pColorNames[nIndex];
......
...@@ -103,7 +103,7 @@ void SvtFontSubstConfig::ImplCommit() ...@@ -103,7 +103,7 @@ void SvtFontSubstConfig::ImplCommit()
Sequence<OUString> aNames(1); Sequence<OUString> aNames(1);
aNames.getArray()[0] = cReplacement; aNames.getArray()[0] = cReplacement;
Sequence<Any> aValues(1); Sequence<Any> aValues(1);
aValues.getArray()[0].setValue(&bIsEnabled, ::getBooleanCppuType()); aValues.getArray()[0].setValue(&bIsEnabled, cppu::UnoType<bool>::get());
PutProperties(aNames, aValues); PutProperties(aNames, aValues);
OUString sNode(cFontPairs); OUString sNode(cFontPairs);
...@@ -120,7 +120,7 @@ void SvtFontSubstConfig::ImplCommit() ...@@ -120,7 +120,7 @@ void SvtFontSubstConfig::ImplCommit()
const OUString sAlways(cAlways); const OUString sAlways(cAlways);
const OUString sOnScreenOnly(cOnScreenOnly); const OUString sOnScreenOnly(cOnScreenOnly);
const uno::Type& rBoolType = ::getBooleanCppuType(); const uno::Type& rBoolType = cppu::UnoType<bool>::get();
for(size_t i = 0; i < pImpl->aSubstArr.size(); i++) for(size_t i = 0; i < pImpl->aSubstArr.size(); i++)
{ {
OUString sPrefix = sNode + "/_" + OUString::number(i) + "/"; OUString sPrefix = sNode + "/_" + OUString::number(i) + "/";
......
...@@ -237,7 +237,7 @@ void SvxHtmlOptions::ImplCommit() ...@@ -237,7 +237,7 @@ void SvxHtmlOptions::ImplCommit()
case 15: bSet = 0 != (pImp->nFlags & HTMLCFG_NUMBERS_ENGLISH_US);break;//"Import/NumbersEnglishUS" case 15: bSet = 0 != (pImp->nFlags & HTMLCFG_NUMBERS_ENGLISH_US);break;//"Import/NumbersEnglishUS"
} }
if(nProp < 2 || ( nProp > 9 && nProp < 14 ) || nProp == 15) if(nProp < 2 || ( nProp > 9 && nProp < 14 ) || nProp == 15)
pValues[nProp].setValue(&bSet, ::getCppuBooleanType()); pValues[nProp].setValue(&bSet, cppu::UnoType<bool>::get());
} }
PutProperties(aNames, aValues); PutProperties(aNames, aValues);
} }
......
...@@ -83,7 +83,7 @@ namespace { ...@@ -83,7 +83,7 @@ namespace {
:OGenericUnoDialog(_rxORB) :OGenericUnoDialog(_rxORB)
{ {
registerProperty(OUString(UNODIALOG_PROPERTY_ALIASES), UNODIALOG_PROPERTY_ID_ALIASES, PropertyAttribute::READONLY, registerProperty(OUString(UNODIALOG_PROPERTY_ALIASES), UNODIALOG_PROPERTY_ID_ALIASES, PropertyAttribute::READONLY,
&m_aAliases, getCppuType(&m_aAliases)); &m_aAliases, cppu::UnoType<decltype(m_aAliases)>::get());
} }
......
...@@ -57,9 +57,9 @@ OGenericUnoDialog::OGenericUnoDialog(const Reference< XComponentContext >& _rxCo ...@@ -57,9 +57,9 @@ OGenericUnoDialog::OGenericUnoDialog(const Reference< XComponentContext >& _rxCo
,m_aContext(_rxContext) ,m_aContext(_rxContext)
{ {
registerProperty(OUString(UNODIALOG_PROPERTY_TITLE), UNODIALOG_PROPERTY_ID_TITLE, PropertyAttribute::TRANSIENT, registerProperty(OUString(UNODIALOG_PROPERTY_TITLE), UNODIALOG_PROPERTY_ID_TITLE, PropertyAttribute::TRANSIENT,
&m_sTitle, getCppuType(&m_sTitle)); &m_sTitle, cppu::UnoType<decltype(m_sTitle)>::get());
registerProperty(OUString(UNODIALOG_PROPERTY_PARENT), UNODIALOG_PROPERTY_ID_PARENT, PropertyAttribute::TRANSIENT, registerProperty(OUString(UNODIALOG_PROPERTY_PARENT), UNODIALOG_PROPERTY_ID_PARENT, PropertyAttribute::TRANSIENT,
&m_xParent, getCppuType(&m_xParent)); &m_xParent, cppu::UnoType<decltype(m_xParent)>::get());
} }
......
...@@ -259,7 +259,7 @@ throw( ::com::sun::star::uno::RuntimeException, std::exception ) ...@@ -259,7 +259,7 @@ throw( ::com::sun::star::uno::RuntimeException, std::exception )
aLock.clear(); aLock.clear();
bool bStatusUpdate( false ); bool bStatusUpdate( false );
rBHelper.addListener( ::getCppuType( &xControl ), xControl ); rBHelper.addListener( cppu::UnoType<decltype(xControl)>::get(), xControl );
aLock.reset(); aLock.reset();
if ( aURL.Complete.startsWith( m_aBaseURL ) ) if ( aURL.Complete.startsWith( m_aBaseURL ) )
...@@ -283,7 +283,7 @@ void SAL_CALL PopupMenuControllerBase::removeStatusListener( ...@@ -283,7 +283,7 @@ void SAL_CALL PopupMenuControllerBase::removeStatusListener(
const URL& /*aURL*/ ) const URL& /*aURL*/ )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) throw( ::com::sun::star::uno::RuntimeException, std::exception )
{ {
rBHelper.removeListener( ::getCppuType( &xControl ), xControl ); rBHelper.removeListener( cppu::UnoType<decltype(xControl)>::get(), xControl );
} }
OUString PopupMenuControllerBase::determineBaseURL( const OUString& aURL ) OUString PopupMenuControllerBase::determineBaseURL( const OUString& aURL )
......
...@@ -67,7 +67,7 @@ ToolboxController::ToolboxController( ...@@ -67,7 +67,7 @@ ToolboxController::ToolboxController(
registerProperty( OUString(TOOLBARCONTROLLER_PROPNAME_SUPPORTSVISIBLE), registerProperty( OUString(TOOLBARCONTROLLER_PROPNAME_SUPPORTSVISIBLE),
TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE, TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE,
css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY, css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY,
&m_bSupportVisible, getCppuType(&m_bSupportVisible)); &m_bSupportVisible, cppu::UnoType<decltype(m_bSupportVisible)>::get());
try try
{ {
...@@ -89,7 +89,7 @@ ToolboxController::ToolboxController() : ...@@ -89,7 +89,7 @@ ToolboxController::ToolboxController() :
registerProperty( OUString(TOOLBARCONTROLLER_PROPNAME_SUPPORTSVISIBLE), registerProperty( OUString(TOOLBARCONTROLLER_PROPNAME_SUPPORTSVISIBLE),
TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE, TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE,
css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY, css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY,
&m_bSupportVisible, getCppuType(&m_bSupportVisible)); &m_bSupportVisible, cppu::UnoType<decltype(m_bSupportVisible)>::get());
} }
ToolboxController::~ToolboxController() ToolboxController::~ToolboxController()
......
...@@ -481,7 +481,7 @@ void TreeControlPeer::ChangeNodesSelection( const Any& rSelection, bool bSelect, ...@@ -481,7 +481,7 @@ void TreeControlPeer::ChangeNodesSelection( const Any& rSelection, bool bSelect,
} }
case TypeClass_SEQUENCE: case TypeClass_SEQUENCE:
{ {
if( rSelection.getValueType() == ::getCppuType( (const Sequence< Reference< XTreeNode > > *) 0 ) ) if( rSelection.getValueType() == cppu::UnoType<Sequence< Reference< XTreeNode > >>::get() )
{ {
const Sequence< Reference< XTreeNode > >& rSeq( *static_cast<const Sequence< Reference< XTreeNode > > *>(rSelection.getValue()) ); const Sequence< Reference< XTreeNode > >& rSeq( *static_cast<const Sequence< Reference< XTreeNode > > *>(rSelection.getValue()) );
nCount = rSeq.getLength(); nCount = rSeq.getLength();
......
...@@ -136,7 +136,7 @@ sal_Bool SvBaseEventDescriptor::hasByName( ...@@ -136,7 +136,7 @@ sal_Bool SvBaseEventDescriptor::hasByName(
Type SvBaseEventDescriptor::getElementType() Type SvBaseEventDescriptor::getElementType()
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
return ::getCppuType((Sequence<PropertyValue> *)0); return cppu::UnoType<Sequence<PropertyValue>>::get();
} }
sal_Bool SvBaseEventDescriptor::hasElements() sal_Bool SvBaseEventDescriptor::hasElements()
......
...@@ -136,8 +136,8 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType ) ...@@ -136,8 +136,8 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType )
{ OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("IsActive"), HANDLE_ISACTIVE, ::getBooleanCppuType(), 0, 0 }, { OUString("IsActive"), HANDLE_ISACTIVE, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString("Polygon"), HANDLE_POLYGON, ::getCppuType((const PointSequence*)0), 0, 0 }, { OUString("Polygon"), HANDLE_POLYGON, cppu::UnoType<PointSequence>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
}; };
...@@ -152,7 +152,7 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType ) ...@@ -152,7 +152,7 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType )
{ OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("IsActive"), HANDLE_ISACTIVE, ::getBooleanCppuType(), 0, 0 }, { OUString("IsActive"), HANDLE_ISACTIVE, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString("Center"), HANDLE_CENTER, cppu::UnoType<awt::Point>::get(), 0, 0 }, { OUString("Center"), HANDLE_CENTER, cppu::UnoType<awt::Point>::get(), 0, 0 },
{ OUString("Radius"), HANDLE_RADIUS, cppu::UnoType<sal_Int32>::get(), 0, 0 }, { OUString("Radius"), HANDLE_RADIUS, cppu::UnoType<sal_Int32>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
...@@ -170,7 +170,7 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType ) ...@@ -170,7 +170,7 @@ PropertySetInfo * SvUnoImageMapObject::createPropertySetInfo( sal_uInt16 nType )
{ OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Description"), HANDLE_DESCRIPTION, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Target"), HANDLE_TARGET, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 }, { OUString("Name"), HANDLE_NAME, cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString("IsActive"), HANDLE_ISACTIVE, ::getBooleanCppuType(), 0, 0 }, { OUString("IsActive"), HANDLE_ISACTIVE, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString("Boundary"), HANDLE_BOUNDARY, cppu::UnoType<awt::Rectangle>::get(), 0, 0 }, { OUString("Boundary"), HANDLE_BOUNDARY, cppu::UnoType<awt::Rectangle>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
}; };
......
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