diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 21:30:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 22:41:56 +0000 |
commit | 9999eab5fe5e92118574468905cae0e3c8982c7f (patch) | |
tree | 2bc04015f09e30c8d8dbb000f12f08749c21be59 /sw/source/core/unocore/unosrch.cxx | |
parent | b234008ba5096f251fffec4c467f2103f4ba3cc0 (diff) |
getPropertyMap can return a reference instead of a pointer
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r-- | sw/source/core/unocore/unosrch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index bd1d4ce942bc..9ad8a5fe8da0 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -65,7 +65,7 @@ public: SwSearchProperties_Impl::SwSearchProperties_Impl() : nArrLen(0), - aPropertyEntries( aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)->getPropertyMap()->getPropertyEntries()) + aPropertyEntries( aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_CURSOR)->getPropertyMap().getPropertyEntries()) { nArrLen = aPropertyEntries.size(); pValueArr = new beans::PropertyValue*[nArrLen]; @@ -555,7 +555,7 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::A lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException ) { SolarMutexGuard aGuard; - const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName); + const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName); if(pEntry) { if ( pEntry->nFlags & beans::PropertyAttribute::READONLY) @@ -588,7 +588,7 @@ uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( b SolarMutexGuard aGuard; uno::Any aRet; - const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName); + const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName); sal_Bool bSet = sal_False; if(pEntry) { |