diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:39:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:39:26 +0200 |
commit | e4c1c0829a44a5992efa35a8445cb3448dc10960 (patch) | |
tree | d35194ad775ba1ad1553b9ac886b2a23ba5d3022 /framework/source | |
parent | 2fb62e527e2ebac187fe80550a40e637b4bf187a (diff) |
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I320895b73f101986e1aab95668c7b76e04315aab
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 12 | ||||
-rw-r--r-- | framework/source/recording/dispatchrecorder.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/autorecovery.cxx | 6 | ||||
-rw-r--r-- | framework/source/services/desktop.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/frame.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/modulemanager.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/pathsettings.cxx | 4 | ||||
-rw-r--r-- | framework/source/uiconfiguration/windowstateconfiguration.cxx | 2 | ||||
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 2 |
9 files changed, 19 insertions, 19 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 94e99fffff36..e8b5d5125cae 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -147,12 +147,12 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) : m_aAsyncLayoutTimer.SetTimeout( 50 ); m_aAsyncLayoutTimer.SetTimeoutHdl( LINK( this, LayoutManager, AsyncLayoutHdl ) ); - registerProperty( LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS, LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS, css::beans::PropertyAttribute::TRANSIENT, &m_bAutomaticToolbars, ::getCppuType( &m_bAutomaticToolbars ) ); - registerProperty( LAYOUTMANAGER_PROPNAME_HIDECURRENTUI, LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI, beans::PropertyAttribute::TRANSIENT, &m_bHideCurrentUI, ::getCppuType( &m_bHideCurrentUI ) ); - registerProperty( LAYOUTMANAGER_PROPNAME_LOCKCOUNT, LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT, beans::PropertyAttribute::TRANSIENT | beans::PropertyAttribute::READONLY, &m_nLockCount, getCppuType( &m_nLockCount ) ); - registerProperty( LAYOUTMANAGER_PROPNAME_MENUBARCLOSER, LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER, beans::PropertyAttribute::TRANSIENT, &m_bMenuBarCloseButton, ::getCppuType( &m_bMenuBarCloseButton ) ); - registerPropertyNoMember( LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY, LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY, beans::PropertyAttribute::TRANSIENT, ::getCppuType( &bRefreshVisibility ), &bRefreshVisibility ); - registerProperty( LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE, LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE, beans::PropertyAttribute::TRANSIENT, &m_bPreserveContentSize, ::getCppuType( &m_bPreserveContentSize ) ); + registerProperty( LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS, LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS, css::beans::PropertyAttribute::TRANSIENT, &m_bAutomaticToolbars, cppu::UnoType<decltype(m_bAutomaticToolbars)>::get() ); + registerProperty( LAYOUTMANAGER_PROPNAME_HIDECURRENTUI, LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI, beans::PropertyAttribute::TRANSIENT, &m_bHideCurrentUI, cppu::UnoType<decltype(m_bHideCurrentUI)>::get() ); + registerProperty( LAYOUTMANAGER_PROPNAME_LOCKCOUNT, LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT, beans::PropertyAttribute::TRANSIENT | beans::PropertyAttribute::READONLY, &m_nLockCount, cppu::UnoType<decltype(m_nLockCount)>::get() ); + registerProperty( LAYOUTMANAGER_PROPNAME_MENUBARCLOSER, LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER, beans::PropertyAttribute::TRANSIENT, &m_bMenuBarCloseButton, cppu::UnoType<decltype(m_bMenuBarCloseButton)>::get() ); + registerPropertyNoMember( LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY, LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY, beans::PropertyAttribute::TRANSIENT, cppu::UnoType<decltype(bRefreshVisibility)>::get(), &bRefreshVisibility ); + registerProperty( LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE, LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE, beans::PropertyAttribute::TRANSIENT, &m_bPreserveContentSize, cppu::UnoType<decltype(m_bPreserveContentSize)>::get() ); } LayoutManager::~LayoutManager() diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx index 48affcc5dd59..e49d43f3d61b 100644 --- a/framework/source/recording/dispatchrecorder.cxx +++ b/framework/source/recording/dispatchrecorder.cxx @@ -180,7 +180,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, OUStringBu // convert to "Sequence of any" css::uno::Sequence < css::uno::Any > aSeq; css::uno::Any aNew; - try { aNew = m_xConverter->convertTo( aValue, ::getCppuType((const css::uno::Sequence < css::uno::Any >*)0) ); } + try { aNew = m_xConverter->convertTo( aValue, cppu::UnoType<css::uno::Sequence < css::uno::Any >>::get() ); } catch (const css::uno::Exception&) {} aNew >>= aSeq; @@ -251,7 +251,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, OUStringBu else aArgumentBuffer.appendAscii("\"\""); } - else if (aValue.getValueType() == getCppuCharType()) + else if (aValue.getValueType() == cppu::UnoType<cppu::UnoCharType>::get()) { // character variables are recorded as strings, back conversion must be handled in client code sal_Unicode nVal = *static_cast<sal_Unicode const *>(aValue.getValue()); diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 206adedf57d9..c2e899429fba 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -4051,9 +4051,9 @@ const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescripto { const css::beans::Property pPropertys[] = { - css::beans::Property( AUTORECOVERY_PROPNAME_CRASHED , AUTORECOVERY_PROPHANDLE_CRASHED , ::getBooleanCppuType() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), - css::beans::Property( AUTORECOVERY_PROPNAME_EXISTS_RECOVERYDATA, AUTORECOVERY_PROPHANDLE_EXISTS_RECOVERYDATA, ::getBooleanCppuType() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), - css::beans::Property( AUTORECOVERY_PROPNAME_EXISTS_SESSIONDATA , AUTORECOVERY_PROPHANDLE_EXISTS_SESSIONDATA , ::getBooleanCppuType() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), + css::beans::Property( AUTORECOVERY_PROPNAME_CRASHED , AUTORECOVERY_PROPHANDLE_CRASHED , cppu::UnoType<bool>::get() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), + css::beans::Property( AUTORECOVERY_PROPNAME_EXISTS_RECOVERYDATA, AUTORECOVERY_PROPHANDLE_EXISTS_RECOVERYDATA, cppu::UnoType<bool>::get() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), + css::beans::Property( AUTORECOVERY_PROPNAME_EXISTS_SESSIONDATA , AUTORECOVERY_PROPHANDLE_EXISTS_SESSIONDATA , cppu::UnoType<bool>::get() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), }; const css::uno::Sequence< css::beans::Property > lPropertyDescriptor(pPropertys, AUTORECOVERY_PROPCOUNT); return lPropertyDescriptor; diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index aabf2fd52c91..24b9761f5648 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -1570,8 +1570,8 @@ const css::uno::Sequence< css::beans::Property > Desktop::impl_getStaticProperty { css::beans::Property( DESKTOP_PROPNAME_ACTIVEFRAME , DESKTOP_PROPHANDLE_ACTIVEFRAME , cppu::UnoType<css::lang::XComponent>::get(), css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), css::beans::Property( DESKTOP_PROPNAME_DISPATCHRECORDERSUPPLIER , DESKTOP_PROPHANDLE_DISPATCHRECORDERSUPPLIER, cppu::UnoType<css::frame::XDispatchRecorderSupplier>::get(), css::beans::PropertyAttribute::TRANSIENT ), - css::beans::Property( DESKTOP_PROPNAME_ISPLUGGED , DESKTOP_PROPHANDLE_ISPLUGGED , ::getBooleanCppuType() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), - css::beans::Property( DESKTOP_PROPNAME_SUSPENDQUICKSTARTVETO , DESKTOP_PROPHANDLE_SUSPENDQUICKSTARTVETO , ::getBooleanCppuType() , css::beans::PropertyAttribute::TRANSIENT ), + css::beans::Property( DESKTOP_PROPNAME_ISPLUGGED , DESKTOP_PROPHANDLE_ISPLUGGED , cppu::UnoType<bool>::get() , css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY ), + css::beans::Property( DESKTOP_PROPNAME_SUSPENDQUICKSTARTVETO , DESKTOP_PROPHANDLE_SUSPENDQUICKSTARTVETO , cppu::UnoType<bool>::get() , css::beans::PropertyAttribute::TRANSIENT ), css::beans::Property( DESKTOP_PROPNAME_TITLE , DESKTOP_PROPHANDLE_TITLE , cppu::UnoType<OUString>::get(), css::beans::PropertyAttribute::TRANSIENT ), }; // Use it to initialize sequence! diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 0b4b48457106..ee75278d06b2 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -2666,7 +2666,7 @@ void Frame::impl_initializePropInfo() css::beans::Property( FRAME_PROPNAME_ISHIDDEN, FRAME_PROPHANDLE_ISHIDDEN, - ::getBooleanCppuType(), + cppu::UnoType<bool>::get(), css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY)); impl_addPropertyInfo( diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx index f1c34b97894b..4b9d383f89fb 100644 --- a/framework/source/services/modulemanager.cxx +++ b/framework/source/services/modulemanager.cxx @@ -324,7 +324,7 @@ sal_Bool SAL_CALL ModuleManager::hasByName(const OUString& sName) css::uno::Type SAL_CALL ModuleManager::getElementType() throw(css::uno::RuntimeException, std::exception) { - return ::getCppuType((const css::uno::Sequence< css::beans::PropertyValue >*)0); + return cppu::UnoType<css::uno::Sequence< css::beans::PropertyValue >>::get(); } sal_Bool SAL_CALL ModuleManager::hasElements() diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index 3dbaaf0c334c..e1a99f08d3bd 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -1127,7 +1127,7 @@ void PathSettings::impl_rebuildPropertyDescriptor() pProp = &(m_lPropDesc[i]); pProp->Name = rPath.sPathName+POSTFIX_INTERNAL_PATHS; pProp->Handle = i; - pProp->Type = ::getCppuType((css::uno::Sequence< OUString >*)0); + pProp->Type = cppu::UnoType<css::uno::Sequence< OUString >>::get(); pProp->Attributes = css::beans::PropertyAttribute::BOUND | css::beans::PropertyAttribute::READONLY; ++i; @@ -1135,7 +1135,7 @@ void PathSettings::impl_rebuildPropertyDescriptor() pProp = &(m_lPropDesc[i]); pProp->Name = rPath.sPathName+POSTFIX_USER_PATHS; pProp->Handle = i; - pProp->Type = ::getCppuType((css::uno::Sequence< OUString >*)0); + pProp->Type = cppu::UnoType<css::uno::Sequence< OUString >>::get(); pProp->Attributes = css::beans::PropertyAttribute::BOUND; if (rPath.bIsReadonly) pProp->Attributes |= css::beans::PropertyAttribute::READONLY; diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index a6dee5c6d5d3..bfa14d55b8f2 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -320,7 +320,7 @@ throw (::com::sun::star::uno::RuntimeException, std::exception) Type SAL_CALL ConfigurationAccess_WindowState::getElementType() throw ( RuntimeException, std::exception ) { - return( ::getCppuType( (const Sequence< PropertyValue >*)NULL ) ); + return( cppu::UnoType<Sequence< PropertyValue >>::get() ); } sal_Bool SAL_CALL ConfigurationAccess_WindowState::hasElements() diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 2a7a19ce9942..c021456cbde7 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -272,7 +272,7 @@ throw (::com::sun::star::uno::RuntimeException, std::exception) Type SAL_CALL ConfigurationAccess_UICommand::getElementType() throw ( RuntimeException, std::exception ) { - return( ::getCppuType( (const Sequence< PropertyValue >*)NULL ) ); + return( cppu::UnoType<Sequence< PropertyValue >>::get() ); } sal_Bool SAL_CALL ConfigurationAccess_UICommand::hasElements() |