From c0ff37c30da931bd1ea203aba1e8dc8a05ea1bf1 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sat, 1 Oct 2016 14:53:32 -0400 Subject: Adding new string conversion overloads [a|w|t|utf8]_from_[a|w|t|utf8_]string(xyz.c_str()) seems to be common enough to justify overloads. Also, I'm explicitly assuming that it is legal to override the NUL pointer within a C++ basic_string (e.g. - s[s.size()] = '\0'). As far as I can tell, this seems to be legal - please don't shoot if I am wrong. --- src/osd/modules/lib/osdlib_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osd/modules/lib/osdlib_win32.cpp') diff --git a/src/osd/modules/lib/osdlib_win32.cpp b/src/osd/modules/lib/osdlib_win32.cpp index b9f647d3bbb..4db5bd2044c 100644 --- a/src/osd/modules/lib/osdlib_win32.cpp +++ b/src/osd/modules/lib/osdlib_win32.cpp @@ -367,7 +367,7 @@ protected: for (auto const &library : m_libraries) { - auto tempstr = tstring_from_utf8(library.c_str()); + tstring tempstr = tstring_from_utf8(library); HMODULE module = load_library(tempstr.c_str()); if (module != nullptr) -- cgit v1.2.3-70-g09d2