[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - configmgr/source

Mike Kaganski mike.kaganski at collabora.com
Wed Nov 1 12:46:09 UTC 2017


 configmgr/source/winreg.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 70179a6e2c888bd649deea4b2b13aedde607b518
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>
    Reviewed-on: https://gerrit.libreoffice.org/44165
    Tested-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx
index af29873951ce..8aeec9b12703 100644
--- a/configmgr/source/winreg.cxx
+++ b/configmgr/source/winreg.cxx
@@ -218,17 +218,17 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil
                 writeData(aFileHandle, " oor:finalized=\"true\"");
             writeData(aFileHandle, "><value");
             if (bExternal)
+            {
                 writeData(aFileHandle, " oor:external=\"");
-            else
-                writeData(aFileHandle, ">");
-
-            writeValueContent(aFileHandle, aValue);
-
-            if (bExternal)
+                writeAttributeValue(aFileHandle, aValue);
                 writeData(aFileHandle, "\"/");
+            }
             else
+            {
+                writeData(aFileHandle, ">");
+                writeValueContent(aFileHandle, aValue);
                 writeData(aFileHandle, "</value");
-
+            }
             writeData(aFileHandle, "></prop>");
             for(; nCloseNode > 0; nCloseNode--)
                 writeData(aFileHandle, "</node>");


More information about the Libreoffice-commits mailing list