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/file/windir.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/file/windir.cpp')
-rw-r--r-- | src/osd/modules/file/windir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/file/windir.cpp b/src/osd/modules/file/windir.cpp index 522e0e297a1..f50907ff117 100644 --- a/src/osd/modules/file/windir.cpp +++ b/src/osd/modules/file/windir.cpp @@ -112,7 +112,7 @@ bool win_directory::open_impl(std::string const &dirname) std::string dirfilter = string_format("%s\\*.*", dirname); // convert the path to TCHARs - auto t_dirfilter = tstring_from_utf8(dirfilter.c_str()); + tstring t_dirfilter = tstring_from_utf8(dirfilter); // attempt to find the first file m_find = FindFirstFileEx(t_dirfilter.c_str(), FindExInfoStandard, &m_data, FindExSearchNameMatch, nullptr, 0); |