Skip to content

Commit

Permalink
try making to_path return a c str to make mingw happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuff committed Aug 31, 2023
1 parent 39c3892 commit f16137b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/support/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ std::string wstring_to_string(const std::wstring& s) {
return outstr;
}
#else
PathString to_path(const std::string& s) { return s; }
const PathString::value_type* to_path(const std::string& s) { return s.c_str(); }
#endif

char getPathSeparator() {
Expand Down
2 changes: 1 addition & 1 deletion src/support/path.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ std::string wstring_to_string(const std::wstring& s);
using PathString = std::string;
#endif

PathString to_path(const std::string& s);
const PathString::value_type* to_path(const std::string& s);

char getPathSeparator();
std::string getDirName(const std::string& path);
Expand Down

0 comments on commit f16137b

Please sign in to comment.