summaryrefslogtreecommitdiff
path: root/indra/llcommon/llfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llfile.cpp')
-rwxr-xr-xindra/llcommon/llfile.cpp9
1 files changed, 4 insertions, 5 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)
{