[Libreoffice-commits] core.git: configmgr/source
Mike Kaganski
mike.kaganski at collabora.com
Wed Nov 1 09:57:35 UTC 2017
configmgr/source/winreg.cxx | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 5a5953b90cd2ba5eaeddc9ba450e3f3ac9dd771a
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Wed Nov 1 11:19:24 2017 +0300
Winreg configuration layer: use writeAttributeValue for oox:external
Change-Id: Ib15250c738f98b26adf9745d453a8d22189b271e
Reviewed-on: https://gerrit.libreoffice.org/44153
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx
index 81fc4b43ea0d..ea24c0ebacb4 100644
--- a/configmgr/source/winreg.cxx
+++ b/configmgr/source/winreg.cxx
@@ -226,17 +226,17 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil
aFileHandle.writeString(" oor:finalized=\"true\"");
aFileHandle.writeString("><value");
if (bExternal)
+ {
aFileHandle.writeString(" oor:external=\"");
- else
- aFileHandle.writeString(">");
-
- writeValueContent(aFileHandle, aValue);
-
- if (bExternal)
+ writeAttributeValue(aFileHandle, aValue);
aFileHandle.writeString("\"/");
+ }
else
+ {
+ aFileHandle.writeString(">");
+ writeValueContent(aFileHandle, aValue);
aFileHandle.writeString("</value");
-
+ }
aFileHandle.writeString("></prop>");
for(; nCloseNode > 0; nCloseNode--)
aFileHandle.writeString("</node>");
More information about the Libreoffice-commits
mailing list