1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 08:15:35 +00:00

Merge branch 'folllllllowup' into 'master'

Replace a `c_str()` with an `native()`

See merge request OpenMW/openmw!1938
This commit is contained in:
psi29a 2022-05-29 19:18:57 +00:00
commit fc24ffcaab

View file

@ -44,7 +44,8 @@ namespace VFS
std::set<std::filesystem::path> seen;
for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter)
{
if (seen.insert((*iter).c_str()).second)
// TODO(jvoisin) Get rid of `->native()` when we move PathContainer from boost::filesystem to std::filesystem.
if (seen.insert(iter->native()).second)
{
Log(Debug::Info) << "Adding data directory " << iter->string();
// Last data dir has the highest priority