summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-28 12:04:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-28 12:34:43 +0000
commit727a25090dbb1d3a3a2c33153a12d9c25b4206de (patch)
tree1531fdb18ee968421bbc50c8425bdebdc38d5f89 /sfx2
parente4f6db9ec254ece82c55f98767e361ad30b25182 (diff)
might as well move append 'usage' into the msConfigPath from the start
Change-Id: Ie8a15f1a20621ebdd00ab4ed195495e0acd111a5
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 6e9946347b13..2191cd807392 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;
@@ -532,7 +533,7 @@ void UsageInfo::save()
//filename type: usage-YYYY-MM-DDTHH_MM_SS.csv
OUString filename = "usage-" + OUString::createFromAscii(time) + ".csv";
- path += filename;
+ OUString path = msConfigPath + filename;
osl::File file(path);