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

Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I338272459f7df611cc0033aaec02170e84ba2393
üst adf907a7
...@@ -146,7 +146,7 @@ bool SmXMLExportWrapper::Export(SfxMedium &rMedium) ...@@ -146,7 +146,7 @@ bool SmXMLExportWrapper::Export(SfxMedium &rMedium)
comphelper::PropertyMapEntry aInfoMap[] = comphelper::PropertyMapEntry aInfoMap[] =
{ {
{ OUString("UsePrettyPrinting"), 0, { OUString("UsePrettyPrinting"), 0,
::getBooleanCppuType(), cppu::UnoType<bool>::get(),
beans::PropertyAttribute::MAYBEVOID, 0}, beans::PropertyAttribute::MAYBEVOID, 0},
{ OUString("BaseURI"), 0, { OUString("BaseURI"), 0,
::cppu::UnoType<OUString>::get(), ::cppu::UnoType<OUString>::get(),
...@@ -167,7 +167,7 @@ bool SmXMLExportWrapper::Export(SfxMedium &rMedium) ...@@ -167,7 +167,7 @@ bool SmXMLExportWrapper::Export(SfxMedium &rMedium)
OUString sUsePrettyPrinting("UsePrettyPrinting"); OUString sUsePrettyPrinting("UsePrettyPrinting");
sal_Bool bUsePrettyPrinting( bFlat || aSaveOpt.IsPrettyPrinting() ); sal_Bool bUsePrettyPrinting( bFlat || aSaveOpt.IsPrettyPrinting() );
Any aAny; Any aAny;
aAny.setValue( &bUsePrettyPrinting, ::getBooleanCppuType() ); aAny.setValue( &bUsePrettyPrinting, cppu::UnoType<bool>::get() );
xInfoSet->setPropertyValue( sUsePrettyPrinting, aAny ); xInfoSet->setPropertyValue( sUsePrettyPrinting, aAny );
// Set base URI // Set base URI
...@@ -344,7 +344,7 @@ bool SmXMLExportWrapper::WriteThroughComponent( ...@@ -344,7 +344,7 @@ bool SmXMLExportWrapper::WriteThroughComponent(
// all streams must be encrypted in encrypted document // all streams must be encrypted in encrypted document
OUString aTmpPropName( "UseCommonStoragePasswordEncryption" ); OUString aTmpPropName( "UseCommonStoragePasswordEncryption" );
sal_Bool bTrue = sal_True; sal_Bool bTrue = sal_True;
aAny.setValue( &bTrue, ::getBooleanCppuType() ); aAny.setValue( &bTrue, cppu::UnoType<bool>::get() );
xSet->setPropertyValue( aTmpPropName, aAny ); xSet->setPropertyValue( aTmpPropName, aAny );
// set Base URL // set Base URL
......
...@@ -364,7 +364,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent( ...@@ -364,7 +364,7 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent(
uno::Reference < beans::XPropertySet > xProps( xEventsStream, uno::UNO_QUERY ); uno::Reference < beans::XPropertySet > xProps( xEventsStream, uno::UNO_QUERY );
Any aAny = xProps->getPropertyValue( "Encrypted" ); Any aAny = xProps->getPropertyValue( "Encrypted" );
bool bEncrypted = false; bool bEncrypted = false;
if ( aAny.getValueType() == ::getBooleanCppuType() ) if ( aAny.getValueType() == cppu::UnoType<bool>::get() )
aAny >>= bEncrypted; aAny >>= bEncrypted;
// set Base URL // set Base URL
......
This diff is collapsed.
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