Remove a trailing space and a missed LLFile::remove() call right before the LLFile::rename()

master
RolfKal 2025-10-15 20:00:27 +02:00 committed by Andrey Kleshchev
parent e12958161c
commit 49a850ccc1
2 changed files with 1 additions and 2 deletions

View File

@ -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.

View File

@ -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);
}
}