diff options
author | 2016-10-01 14:53:32 -0400 | |
---|---|---|
committer | 2016-10-01 14:53:32 -0400 | |
commit | c0ff37c30da931bd1ea203aba1e8dc8a05ea1bf1 (patch) | |
tree | 97265a831a19f4ef76e049886a5771033d25edcc /src/osd/modules/lib/osdlib_win32.cpp | |
parent | 0e2299e424d7da177a57bb530ae740c79a3c92a0 (diff) |
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.
Diffstat (limited to 'src/osd/modules/lib/osdlib_win32.cpp')
-rw-r--r-- | src/osd/modules/lib/osdlib_win32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |