summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/doctemplates.cxx10
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx6
2 files changed, 7 insertions, 9 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index b4e59a4ce3f2..0ea4a1f093c2 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -27,6 +27,7 @@
#include <vcl/wrkwin.hxx>
#include <unotools/pathoptions.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/propertysequence.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/storagehelper.hxx>
#include <comphelper/string.hxx>
@@ -614,11 +615,10 @@ bool SfxDocTplService_Impl::setTitleForURL( const OUString& rURL, const OUString
uno::Reference< embed::XStorage > xStorage = ::comphelper::OStorageHelper::GetStorageFromURL(
rURL, embed::ElementModes::READWRITE);
- uno::Sequence<beans::PropertyValue> medium(2);
- medium[0].Name = "DocumentBaseURL";
- medium[0].Value <<= rURL;
- medium[1].Name = "URL";
- medium[1].Value <<= rURL;
+ uno::Sequence<beans::PropertyValue> medium( comphelper::InitPropertySequence({
+ { "DocumentBaseURL", Any(rURL) },
+ { "URL", Any(rURL) }
+ }));
m_xDocProps->storeToStorage(xStorage, medium);
return true;
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index c3cbdb3712ca..db889ac89788 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -3345,10 +3345,8 @@ void SfxBaseModel::getGrabBagItem(css::uno::Any& rVal) const
{
if (m_pData->m_xGrabBagItem.get())
m_pData->m_xGrabBagItem->QueryValue(rVal);
- else {
- uno::Sequence<beans::PropertyValue> aValue(0);
- rVal <<= aValue;
- }
+ else
+ rVal <<= uno::Sequence<beans::PropertyValue>();
}
void SfxBaseModel::setGrabBagItem(const css::uno::Any& rVal)