summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-28 10:42:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-28 10:53:45 +0000
commitdc1c69a4efe9368a1f4fae4bc11325485bcc0772 (patch)
treee504d6c5fc02e8bd5a9fb11c56f4192bea4f66c3 /sfx2
parent061b541e779c44e0345ad88138cf3a72e96e2e86 (diff)
might as well move append 'usage' into the msConfigPath from the start
Change-Id: Ic3e141d91607f8e34ff4a74cd1ae3276e42934e7
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 6e9946347b13..b343c77c58c2 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -496,7 +496,10 @@ public:
{
mbIsCollecting = bIsCollecting;
if (mbIsCollecting)
+ {
msConfigPath = SvtPathOptions().GetConfigPath();
+ msConfigPath += "usage/";
+ }
}
};
@@ -515,9 +518,7 @@ void UsageInfo::save()
if (!mbIsCollecting)
return;
- OUString path(msConfigPath);
- path += "usage/";
- osl::Directory::createPath(path);
+ osl::Directory::createPath(msConfigPath);
//get system time information.
TimeValue systemTime;