Remove a trailing space and a missed LLFile::remove() call right before the LLFile::rename()
parent
e12958161c
commit
49a850ccc1
|
|
@ -107,7 +107,7 @@ public:
|
|||
/// if you don't want a warning in the log when the directory does not exist
|
||||
/// @returns 0 on success and -1 on failure.
|
||||
|
||||
/// rename a file,
|
||||
/// rename a file
|
||||
static int rename(const std::string& filename, const std::string& newname, int supress_error = 0);
|
||||
///< it will silently overwrite newname if it exists without returning an error
|
||||
/// @returns 0 on success and -1 on failure.
|
||||
|
|
|
|||
|
|
@ -2398,7 +2398,6 @@ void LLAppViewer::initLoggingAndGetLastDuration()
|
|||
if (gDirUtilp->fileExists(user_data_path_cef_log))
|
||||
{
|
||||
std::string user_data_path_cef_old = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "cef.old");
|
||||
LLFile::remove(user_data_path_cef_old, ENOENT);
|
||||
LLFile::rename(user_data_path_cef_log, user_data_path_cef_old);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue