mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
notcurses-tester: yank out std::filesystem
This commit is contained in:
parent
180b030de5
commit
34e6abc133
@ -25,9 +25,10 @@ auto testing_notcurses() -> struct notcurses* {
|
|||||||
template <typename T> using uniqptr = std::unique_ptr<T,free_deleter>;
|
template <typename T> using uniqptr = std::unique_ptr<T,free_deleter>;
|
||||||
|
|
||||||
auto find_data(const char* datum) -> uniqptr<char> {
|
auto find_data(const char* datum) -> uniqptr<char> {
|
||||||
std::filesystem::path p = datadir;
|
std::string s = datadir;
|
||||||
p /= datum;
|
s += path_seperator();
|
||||||
uniqptr<char> uptr(strdup(p.c_str()));
|
s += datum;
|
||||||
|
uniqptr<char> uptr(strdup(s.c_str()));
|
||||||
return uptr;
|
return uptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user