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