Kaydet (Commit) 727a2509 authored tarafından Caolán McNamara's avatar Caolán McNamara

might as well move append 'usage' into the msConfigPath from the start

Change-Id: Ie8a15f1a20621ebdd00ab4ed195495e0acd111a5
üst e4f6db9e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment