void CConfigLog::WriteWinMergeConfig()
{
TempFile tmpfile;
- tmpfile.Create();
- GetOptionsMgr()->ExportOptions(tmpfile.GetPath(), true);
+ String tmppath = tmpfile.Create();
+ GetOptionsMgr()->ExportOptions(tmppath, true);
UniMemFile ufile;
- if (!ufile.OpenReadOnly(tmpfile.GetPath()))
+ if (!ufile.OpenReadOnly(tmppath))
return;
String line;
bool lossy;
*/
void PropBackups::WriteOptions()
{
- strutils::trim_ws(m_sGlobalFolder);
+ m_sGlobalFolder = strutils::trim_ws(m_sGlobalFolder);
if (m_sGlobalFolder.length() > 3)
m_sGlobalFolder = paths::AddTrailingSlash(m_sGlobalFolder);