summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docinf.cxx6
-rw-r--r--sfx2/source/doc/oleprops.cxx4
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx
index 0074eb78ab4f..f86cf5c0f8cf 100644
--- a/sfx2/source/doc/docinf.cxx
+++ b/sfx2/source/doc/docinf.cxx
@@ -59,7 +59,7 @@ ErrCode LoadOlePropertySet(
// global section
SfxOleSectionRef xGlobSect = aGlobSet.GetSection( SECTION_GLOBAL );
- if( xGlobSect.get() )
+ if( xGlobSect )
{
// set supported properties
OUString aStrValue;
@@ -144,7 +144,7 @@ ErrCode LoadOlePropertySet(
// custom properties
SfxOleSectionRef xCustomSect = aDocSet.GetSection( SECTION_CUSTOM );
- if( xCustomSect.get() )
+ if( xCustomSect )
{
uno::Reference < beans::XPropertyContainer > xUserDefined(
i_xDocProps->getUserDefinedProperties(), uno::UNO_SET_THROW);
@@ -173,7 +173,7 @@ ErrCode LoadOlePropertySet(
if ( xWriterProps.is() )
{
SfxOleSectionRef xBuiltin = aDocSet.GetSection( SECTION_BUILTIN );
- if ( xBuiltin.get() )
+ if ( xBuiltin )
{
try
{
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index c3baa5d21151..65145a21a96d 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -793,7 +793,7 @@ bool SfxOleSection::GetDateValue( util::Date& rValue, sal_Int32 nPropId ) const
void SfxOleSection::SetProperty( const SfxOlePropertyRef& xProp )
{
- if( xProp.get() )
+ if( xProp )
maPropMap[ xProp->GetPropId() ] = xProp;
}
@@ -1062,7 +1062,7 @@ void SfxOleSection::LoadProperty( SvStream& rStrm, sal_Int32 nPropId )
break;
}
// load property contents
- if( xProp.get() )
+ if( xProp )
{
SetError( xProp->Load( rStrm ) );
maPropMap[ nPropId ] = xProp;
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index d647c80a4d48..533650751d75 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3468,7 +3468,7 @@ bool SfxBaseModel::hasValidSignatures() const
void SfxBaseModel::getGrabBagItem(css::uno::Any& rVal) const
{
- if (m_pData->m_xGrabBagItem.get())
+ if (m_pData->m_xGrabBagItem)
m_pData->m_xGrabBagItem->QueryValue(rVal);
else
rVal <<= uno::Sequence<beans::PropertyValue>();
@@ -3476,7 +3476,7 @@ void SfxBaseModel::getGrabBagItem(css::uno::Any& rVal) const
void SfxBaseModel::setGrabBagItem(const css::uno::Any& rVal)
{
- if (!m_pData->m_xGrabBagItem.get())
+ if (!m_pData->m_xGrabBagItem)
m_pData->m_xGrabBagItem = std::make_shared<SfxGrabBagItem>();
m_pData->m_xGrabBagItem->PutValue(rVal, 0);