diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:40:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:40:59 +0200 |
commit | 6ef1c55fd2a157f82cbe75909f5d70cb48d1d53e (patch) | |
tree | f7463d68acf1c5ba07daae05bc0de18400e4f5ff /sfx2 | |
parent | ae24507f2bb10937ae15a1aa4d74d1a7e8afda2b (diff) |
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I1fee5879bbf0293dc765247f0587ce52c1570a3e
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/querystatus.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templateinfodlg.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/plugin.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 50 | ||||
-rw-r--r-- | sfx2/source/notify/eventsupplier.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/statbar/stbitem.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 8 |
11 files changed, 45 insertions, 45 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 6c0f24712283..3e72e8d6178b 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1942,7 +1942,7 @@ SfxItemState SfxBindings::QueryState( sal_uInt16 nSlot, SfxPoolItem* &rpState ) ::com::sun::star::uno::Any aAny = pBind->GetStatus().State; ::com::sun::star::uno::Type pType = aAny.getValueType(); - if ( pType == ::getBooleanCppuType() ) + if ( pType == cppu::UnoType<bool>::get() ) { bool bTemp = false; aAny >>= bTemp ; diff --git a/sfx2/source/control/querystatus.cxx b/sfx2/source/control/querystatus.cxx index 751614ce9f1c..6d723655f027 100644 --- a/sfx2/source/control/querystatus.cxx +++ b/sfx2/source/control/querystatus.cxx @@ -111,7 +111,7 @@ throw( RuntimeException, std::exception ) m_eState = SfxItemState::DEFAULT; ::com::sun::star::uno::Type pType = rEvent.State.getValueType(); - if ( pType == ::getBooleanCppuType() ) + if ( pType == cppu::UnoType<bool>::get() ) { bool bTemp = false; rEvent.State >>= bTemp ; diff --git a/sfx2/source/dialog/templateinfodlg.cxx b/sfx2/source/dialog/templateinfodlg.cxx index a2514ea23a11..1f6f9935aaf8 100644 --- a/sfx2/source/dialog/templateinfodlg.cxx +++ b/sfx2/source/dialog/templateinfodlg.cxx @@ -96,15 +96,15 @@ void SfxTemplateInfoDlg::loadDocument(const OUString &rURL) bool b = true; uno::Sequence <beans::PropertyValue> aArgs( 4 ); aArgs[0].Name = "Preview"; - aArgs[0].Value.setValue( &b, ::getBooleanCppuType() ); + aArgs[0].Value.setValue( &b, cppu::UnoType<bool>::get() ); aArgs[1].Name = "ReadOnly"; - aArgs[1].Value.setValue( &b, ::getBooleanCppuType() ); + aArgs[1].Value.setValue( &b, cppu::UnoType<bool>::get() ); aArgs[2].Name = "AsTemplate"; // prevents getting an empty URL with getURL()! aArgs[3].Name = "InteractionHandler"; aArgs[3].Value <<= xInteractionHandler; b = false; - aArgs[2].Value.setValue( &b, ::getBooleanCppuType() ); + aArgs[2].Value.setValue( &b, cppu::UnoType<bool>::get() ); xDisp->dispatch( aURL, aArgs ); } } diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index e76c9f544462..a3dc009a9e38 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -139,10 +139,10 @@ const SfxItemPropertyMapEntry* lcl_GetIFramePropertyMap_Impl() { static const SfxItemPropertyMapEntry aIFramePropertyMap_Impl[] = { - { OUString("FrameIsAutoBorder"), WID_FRAME_IS_AUTO_BORDER, ::getBooleanCppuType(), PROPERTY_UNBOUND, 0 }, - { OUString("FrameIsAutoScroll"), WID_FRAME_IS_AUTO_SCROLL, ::getBooleanCppuType(), PROPERTY_UNBOUND, 0 }, - { OUString("FrameIsBorder"), WID_FRAME_IS_BORDER, ::getBooleanCppuType(), PROPERTY_UNBOUND, 0 }, - { OUString("FrameIsScrollingMode"), WID_FRAME_IS_SCROLLING_MODE,::getBooleanCppuType(), PROPERTY_UNBOUND, 0 }, + { OUString("FrameIsAutoBorder"), WID_FRAME_IS_AUTO_BORDER, cppu::UnoType<bool>::get(), PROPERTY_UNBOUND, 0 }, + { OUString("FrameIsAutoScroll"), WID_FRAME_IS_AUTO_SCROLL, cppu::UnoType<bool>::get(), PROPERTY_UNBOUND, 0 }, + { OUString("FrameIsBorder"), WID_FRAME_IS_BORDER, cppu::UnoType<bool>::get(), PROPERTY_UNBOUND, 0 }, + { OUString("FrameIsScrollingMode"), WID_FRAME_IS_SCROLLING_MODE,cppu::UnoType<bool>::get(), PROPERTY_UNBOUND, 0 }, { OUString("FrameMarginHeight"), WID_FRAME_MARGIN_HEIGHT, cppu::UnoType<sal_Int32>::get(), PROPERTY_UNBOUND, 0 }, { OUString("FrameMarginWidth"), WID_FRAME_MARGIN_WIDTH, cppu::UnoType<sal_Int32>::get(), PROPERTY_UNBOUND, 0 }, { OUString("FrameName"), WID_FRAME_NAME, cppu::UnoType<OUString>::get(), PROPERTY_UNBOUND, 0 }, diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index 8eaa6956aedb..ad06943463ba 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -954,7 +954,7 @@ bool SfxOleSection::SetAnyValue( sal_Int32 nPropId, const Any& rValue ) ::com::sun::star::util::DateTime aApiDateTime; ::com::sun::star::util::Date aApiDate; - if( rValue.getValueType() == ::getBooleanCppuType() ) + if( rValue.getValueType() == cppu::UnoType<bool>::get() ) SetBoolValue( nPropId, ::comphelper::getBOOL( rValue ) ); else if( rValue >>= nInt32 ) SetInt32Value( nPropId, nInt32 ); diff --git a/sfx2/source/doc/plugin.cxx b/sfx2/source/doc/plugin.cxx index 532c1702d077..ca30f4563093 100644 --- a/sfx2/source/doc/plugin.cxx +++ b/sfx2/source/doc/plugin.cxx @@ -72,7 +72,7 @@ const SfxItemPropertyMapEntry* lcl_GetPluginPropertyMap_Impl() { static const SfxItemPropertyMapEntry aPluginPropertyMap_Impl[] = { - { OUString("PluginCommands"), WID_COMMANDS, ::getCppuType((::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >*)0), PROPERTY_UNBOUND, 0}, + { OUString("PluginCommands"), WID_COMMANDS, cppu::UnoType<css::uno::Sequence< ::com::sun::star::beans::PropertyValue >>::get(), PROPERTY_UNBOUND, 0}, { OUString("PluginMimeType"), WID_MIMETYPE, cppu::UnoType<OUString>::get(), PROPERTY_UNBOUND, 0 }, { OUString("PluginURL"), WID_URL , cppu::UnoType<OUString>::get(), PROPERTY_UNBOUND, 0 }, { OUString(), 0, css::uno::Type(), 0, 0 } diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index ea60a11b51af..f16c5a603385 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -1953,7 +1953,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla { if ( aFlavor.MimeType == "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { TransferableObjectDescriptor aDesc; @@ -1982,7 +1982,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-embed-source;windows_formatname=\"Star EMBS\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { try { @@ -2007,7 +2007,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = @@ -2028,7 +2028,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = m_pData->m_pObjectShell->CreatePreviewMetaFile_Impl( true ); @@ -2048,7 +2048,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-emf;windows_formatname=\"Image EMF\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = m_pData->m_pObjectShell->GetPreviewMetaFile( true ); @@ -2083,7 +2083,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = m_pData->m_pObjectShell->GetPreviewMetaFile( true ); @@ -2123,7 +2123,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = m_pData->m_pObjectShell->GetPreviewMetaFile( true ); @@ -2147,7 +2147,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla } else if ( aFlavor.MimeType == "image/png" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) { std::shared_ptr<GDIMetaFile> xMetaFile = m_pData->m_pObjectShell->GetPreviewMetaFile( true ); @@ -2192,41 +2192,41 @@ Sequence< datatransfer::DataFlavor > SAL_CALL SfxBaseModel::getTransferDataFlavo aFlavorSeq[0].MimeType = "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\""; aFlavorSeq[0].HumanPresentableName = "GDIMetaFile"; - aFlavorSeq[0].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[0].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[1].MimeType = "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\""; aFlavorSeq[1].HumanPresentableName = "GDIMetaFile"; - aFlavorSeq[1].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[1].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[2].MimeType = "application/x-openoffice-emf;windows_formatname=\"Image EMF\"" ; aFlavorSeq[2].HumanPresentableName = "Enhanced Windows MetaFile"; - aFlavorSeq[2].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[2].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[3].MimeType = "application/x-openoffice-wmf;windows_formatname=\"Image WMF\""; aFlavorSeq[3].HumanPresentableName = "Windows MetaFile"; - aFlavorSeq[3].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[3].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[4].MimeType = "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\""; aFlavorSeq[4].HumanPresentableName = "Star Object Descriptor (XML)"; - aFlavorSeq[4].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[4].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[5].MimeType = "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\""; aFlavorSeq[5].HumanPresentableName = "Star Embed Source (XML)"; - aFlavorSeq[5].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[5].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[6].MimeType = "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\""; aFlavorSeq[6].HumanPresentableName = "Bitmap"; - aFlavorSeq[6].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[6].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); aFlavorSeq[7].MimeType = "image/png"; aFlavorSeq[7].HumanPresentableName = "PNG"; - aFlavorSeq[7].DataType = getCppuType( (const Sequence< sal_Int8 >*) 0 ); + aFlavorSeq[7].DataType = cppu::UnoType<Sequence< sal_Int8 >>::get(); if ( nSuppFlavors == 10 ) { @@ -2256,17 +2256,17 @@ sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataF if ( aFlavor.MimeType == "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } else if ( aFlavor.MimeType == "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } else if ( aFlavor.MimeType == "application/x-openoffice-emf;windows_formatname=\"Image EMF\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; else if ( GraphicHelper::supportsMetaFileHandle_Impl() && aFlavor.DataType == cppu::UnoType<sal_uInt64>::get()) @@ -2274,7 +2274,7 @@ sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataF } else if ( aFlavor.MimeType == "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; else if ( GraphicHelper::supportsMetaFileHandle_Impl() && aFlavor.DataType == cppu::UnoType<sal_uInt64>::get()) @@ -2282,22 +2282,22 @@ sal_Bool SAL_CALL SfxBaseModel::isDataFlavorSupported( const datatransfer::DataF } else if ( aFlavor.MimeType == "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } else if ( aFlavor.MimeType == "application/x-openoffice-embed-source;windows_formatname=\"Star EMBS\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } else if ( aFlavor.MimeType == "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } else if ( aFlavor.MimeType == "image/png" ) { - if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) ) + if ( aFlavor.DataType == cppu::UnoType<Sequence< sal_Int8 >>::get() ) return sal_True; } @@ -3701,7 +3701,7 @@ embed::VisualRepresentation SAL_CALL SfxBaseModel::getPreferredVisualRepresentat datatransfer::DataFlavor aDataFlavor( OUString("application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"" ), OUString("GDIMetaFile"), - ::getCppuType( (const Sequence< sal_Int8 >*) NULL ) ); + cppu::UnoType<Sequence< sal_Int8 >>::get() ); embed::VisualRepresentation aVisualRepresentation; aVisualRepresentation.Data = getTransferData( aDataFlavor ); diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index f5c32f396ac6..57c1c085e3ec 100644 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -163,7 +163,7 @@ sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName ) throw ( uno uno::Type SAL_CALL SfxEvents_Impl::getElementType() throw ( uno::RuntimeException, std::exception ) { - uno::Type aElementType = ::getCppuType( (const uno::Sequence < beans::PropertyValue > *)0 ); + uno::Type aElementType = cppu::UnoType<uno::Sequence < beans::PropertyValue >>::get(); return aElementType; } diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index d4e13fab567e..6b55a7b13b92 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -831,7 +831,7 @@ css::uno::Type Theme::GetCppuType (const PropertyType eType) return cppu::UnoType<sal_uInt32>::get(); case PT_Paint: - return getCppuVoidType(); + return cppu::UnoType<cppu::UnoVoidType>::get(); case PT_Integer: return cppu::UnoType<sal_Int32>::get(); @@ -844,7 +844,7 @@ css::uno::Type Theme::GetCppuType (const PropertyType eType) case PT_Invalid: default: - return getCppuVoidType(); + return cppu::UnoType<cppu::UnoVoidType>::get(); } } diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx index ee16671f3944..bd3a3969eac4 100644 --- a/sfx2/source/statbar/stbitem.cxx +++ b/sfx2/source/statbar/stbitem.cxx @@ -257,12 +257,12 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) eState = SfxItemState::DEFAULT; uno::Type pType = rEvent.State.getValueType(); - if ( pType == ::getVoidCppuType() ) + if ( pType == cppu::UnoType<cppu::UnoVoidType>::get() ) { pItem = new SfxVoidItem( nSlotID ); eState = SfxItemState::UNKNOWN; } - else if ( pType == ::getBooleanCppuType() ) + else if ( pType == cppu::UnoType<bool>::get() ) { bool bTemp = false; rEvent.State >>= bTemp ; diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 027d4406adf8..a16c0bbf4674 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -515,12 +515,12 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) eState = SfxItemState::DEFAULT; ::com::sun::star::uno::Type pType = rEvent.State.getValueType(); - if ( pType == ::getVoidCppuType() ) + if ( pType == cppu::UnoType<cppu::UnoVoidType>::get() ) { pItem = new SfxVoidItem( nSlotId ); eState = SfxItemState::UNKNOWN; } - else if ( pType == ::getBooleanCppuType() ) + else if ( pType == cppu::UnoType<bool>::get() ) { bool bTemp = false; rEvent.State >>= bTemp ; @@ -1069,12 +1069,12 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception ) eState = SfxItemState::DEFAULT; ::com::sun::star::uno::Type pType = rEvent.State.getValueType(); - if ( pType == ::getVoidCppuType() ) + if ( pType == cppu::UnoType<cppu::UnoVoidType>::get() ) { pItem = new SfxVoidItem( nSlotId ); eState = SfxItemState::UNKNOWN; } - else if ( pType == ::getBooleanCppuType() ) + else if ( pType == cppu::UnoType<bool>::get() ) { bool bTemp = false; rEvent.State >>= bTemp ; |