1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
This commit is contained in:
AnyOldName3 2021-11-29 20:16:49 +00:00
parent 5e9d460032
commit b991263a92

View File

@ -327,13 +327,13 @@ std::istream& operator>> (std::istream& istream, MaybeQuotedPath& MaybeQuotedPat
istream >> static_cast<boost::filesystem::path&>(MaybeQuotedPath);
if (istream && !istream.eof() && istream.peek() != EOF)
{
std::string remainder(std::istreambuf_iterator(istream), {});
std::string remainder{std::istreambuf_iterator(istream), {}};
Log(Debug::Warning) << "Trailing data in path setting. Used '" << MaybeQuotedPath.string() << "' but '" << remainder << "' remained";
}
}
else
{
std::string intermediate(std::istreambuf_iterator(istream), {});
std::string intermediate{std::istreambuf_iterator(istream), {}};
static_cast<boost::filesystem::path&>(MaybeQuotedPath) = intermediate;
}
return istream;