aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-08-18 18:40:08 -0700
committerChris Robinson <[email protected]>2023-08-18 18:40:08 -0700
commitbb841f02fb06148bba422e92a9b1a6b46ab3bde3 (patch)
treeab2f44bf7f64a876a3839bef1ea3d1c4ebcc79e3
parentbfb79945d0ed7450ad3e93941f6576ce1cc4058b (diff)
Use a string instead of a c_str for a string_view
-rw-r--r--alc/alc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 6163e004..9dc99a5d 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -366,7 +366,7 @@ void alc_initconfig(void)
if(logf) gLogFile = logf;
else
{
- auto u8name = wstr_to_utf8(logfile->c_str());
+ auto u8name = wstr_to_utf8(*logfile);
ERR("Failed to open log file '%s'\n", u8name.c_str());
}
}