summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/smarttags/SmartTagMgr.cxx4
-rw-r--r--svx/source/unodraw/unoshape.cxx4
2 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/smarttags/SmartTagMgr.cxx b/svx/source/smarttags/SmartTagMgr.cxx
index fd4f0e2f727e..e53576dc583a 100644
--- a/svx/source/smarttags/SmartTagMgr.cxx
+++ b/svx/source/smarttags/SmartTagMgr.cxx
@@ -375,11 +375,9 @@ void SmartTagMgr::LoadLibraries()
void SmartTagMgr::PrepareConfiguration( std::u16string_view rConfigurationGroupName )
{
- Any aAny(
- OUString::Concat("/org.openoffice.Office.Common/SmartTags/") + rConfigurationGroupName );
beans::PropertyValue aPathArgument;
aPathArgument.Name = "nodepath";
- aPathArgument.Value = aAny;
+ aPathArgument.Value <<= OUString::Concat("/org.openoffice.Office.Common/SmartTags/") + rConfigurationGroupName;
Sequence< Any > aArguments{ Any(aPathArgument) };
Reference< lang::XMultiServiceFactory > xConfProv = configuration::theDefaultProvider::get( mxContext );
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 9b3ea432ba04..f0e1f89ce132 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -3593,8 +3593,8 @@ uno::Reference< container::XIndexContainer > SAL_CALL SvxShape::getGluePoints()
if( HasSdrObject() && !xGluePoints.is() )
{
- uno::Reference< container::XIndexContainer > xNew( SvxUnoGluePointAccess_createInstance( GetSdrObject() ), uno::UNO_QUERY );
- mxGluePoints = xGluePoints = xNew;
+ xGluePoints.set(SvxUnoGluePointAccess_createInstance(GetSdrObject()), uno::UNO_QUERY);
+ mxGluePoints = xGluePoints;
}
return xGluePoints;