Kaydet (Commit) 1bdc9d43 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some trivial string clean up

Change-Id: I68c738152250e0cbd317e903cb088c60e9b40566
üst 11d743af
......@@ -651,15 +651,13 @@ SfxDocumentMetaData::getURLProperties(
{
css::uno::Reference< css::beans::XPropertyBag> xPropArg = css::beans::PropertyBag::createDefault( m_xContext );
try {
OUString dburl("DocumentBaseURL");
OUString hdn("HierarchicalDocumentName");
for (sal_Int32 i = 0; i < i_rMedium.getLength(); ++i) {
if (i_rMedium[i].Name.equals(dburl)) {
if (i_rMedium[i].Name == "DocumentBaseURL") {
xPropArg->addProperty(
OUString("BaseURI"),
css::beans::PropertyAttribute::MAYBEVOID,
i_rMedium[i].Value);
} else if (i_rMedium[i].Name.equals(hdn)) {
} else if (i_rMedium[i].Name == "HierarchicalDocumentName") {
xPropArg->addProperty(
OUString("StreamRelPath"),
css::beans::PropertyAttribute::MAYBEVOID,
......
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