diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-12-17 10:55:32 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-01-07 02:15:43 +0200 |
| commit | bddb75f1ee729925f1df2f52158e3af64bcac843 (patch) | |
| tree | a3bec4db2d4f3da9eaca3e1cc39bad8fa644dc3b | |
| parent | 9440f969033b73e2e2a037c291bcb45619b1dfd1 (diff) | |
#4899 Adjustments per rae's review
| -rwxr-xr-x | indra/llcommon/llfile.cpp | 9 | ||||
| -rwxr-xr-x | indra/newview/llviewerdisplay.cpp | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/indra/llcommon/llfile.cpp b/indra/llcommon/llfile.cpp index ff87d8ce10..3780a26cbe 100755 --- a/indra/llcommon/llfile.cpp +++ b/indra/llcommon/llfile.cpp @@ -226,7 +226,7 @@ static void find_locking_process(const std::string& filename) } #endif // LL_WINDOWS hack to identify processes holding file open -static int warnif(const std::string& desc, const std::string& filename, int rc, int suppress_warning = 0) +static int warnif(std::string_view desc, const std::string& filename, int rc, int suppress_warning = 0) { if (rc < 0) { @@ -252,7 +252,7 @@ static int warnif(const std::string& desc, const std::string& filename, int rc, return rc; } -static int warnif(const std::string& desc, const std::string& filename, const std::error_code& ec, int suppress_warning = 0) +static int warnif(std::string_view desc, const std::string& filename, const std::error_code& ec, int suppress_warning = 0) { if (ec) { @@ -1130,11 +1130,10 @@ const std::string& LLFile::tmpdir() temppath = std::filesystem::temp_directory_path().string(); } - char sep; #if LL_WINDOWS - sep = '\\'; + char sep = '\\'; #else - sep = '/'; + char sep = '/'; #endif if (temppath[temppath.size() - 1] != sep) { diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index 5ad3344a6e..6b1ec4bbbe 100755 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -1144,7 +1144,7 @@ std::string getProfileStatsFilename() // base + missing 2-digit seconds, append ".json" // post-increment sec in case we have to try again name = stringize(base, std::setw(2), std::setfill('0'), sec++, ".json"); - } while (LLFile::exists(fsyspath(name))); + } while (LLFile::exists(name)); return name; } |
