might as well move append 'usage' into the msConfigPath from the start
Change-Id: Ie8a15f1a20621ebdd00ab4ed195495e0acd111a5
This commit is contained in:
parent
e4f6db9ec2
commit
727a25090d
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue