[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara caolanm at redhat.com
Tue Feb 28 10:59:32 UTC 2017


 sfx2/source/control/unoctitm.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 390b7ffbc9c0fd2a846bb0a60883b450d6124fd8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 28 10:58:25 2017 +0000

    Revert "move append 'usage' into the msConfigPath from the start"
    
    oops
    
    This reverts commit dc1c69a4efe9368a1f4fae4bc11325485bcc0772.
    
    Change-Id: I5fb9016040636fb44d4337567a6b894bfe16f503

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index b343c77..6e99463 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -496,10 +496,7 @@ public:
     {
         mbIsCollecting = bIsCollecting;
         if (mbIsCollecting)
-        {
             msConfigPath = SvtPathOptions().GetConfigPath();
-            msConfigPath += "usage/";
-        }
     }
 };
 
@@ -518,7 +515,9 @@ void UsageInfo::save()
     if (!mbIsCollecting)
         return;
 
-    osl::Directory::createPath(msConfigPath);
+    OUString path(msConfigPath);
+    path += "usage/";
+    osl::Directory::createPath(path);
 
     //get system time information.
     TimeValue systemTime;


More information about the Libreoffice-commits mailing list