mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
This commit is contained in:
parent
5e9d460032
commit
b991263a92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user