diff options
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/loktxdoc.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/uno/loktxdoc.cxx b/sw/source/uibase/uno/loktxdoc.cxx index 4843af4cf443..47527605f69a 100644 --- a/sw/source/uibase/uno/loktxdoc.cxx +++ b/sw/source/uibase/uno/loktxdoc.cxx @@ -450,9 +450,7 @@ void SwXTextDocument::getCommandValues(tools::JsonWriter& rJsonWriter, std::stri else aValue = aToken; } while (nIndex >= 0); - OUString aDecodedValue - = INetURLObject::decode(aValue, INetURLObject::DecodeMechanism::WithCharset); - aMap[aKey] = aDecodedValue; + aMap[aKey] = INetURLObject::decode(aValue, INetURLObject::DecodeMechanism::WithCharset); } while (nParamIndex >= 0); if (o3tl::starts_with(rCommand, aTextFormFields)) diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index 7ea3d9db4e40..22de9f34a175 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -961,8 +961,7 @@ void SwAutoTextEventDescriptor::getByName( // return empty macro, unless macro is found OUString sEmptyStr; - SvxMacro aEmptyMacro(sEmptyStr, sEmptyStr); - rMacro = aEmptyMacro; + rMacro = SvxMacro(sEmptyStr, sEmptyStr); if ( !pBlocks || pBlocks->GetError()) return; |