mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
fix most vexing parse issue
This commit is contained in:
parent
424d06a6f8
commit
e02b04536f
@ -201,7 +201,7 @@ namespace
|
|||||||
add_setting("Archives", "Archive 1", "Bloodmoon.bsa", ini);
|
add_setting("Archives", "Archive 1", "Bloodmoon.bsa", ini);
|
||||||
}
|
}
|
||||||
|
|
||||||
bfs::ofstream inistream(ini_path)
|
bfs::ofstream inistream((ini_path));
|
||||||
inistream << ini;
|
inistream << ini;
|
||||||
inistream.close();
|
inistream.close();
|
||||||
}
|
}
|
||||||
|
@ -198,7 +198,7 @@ namespace MWGui
|
|||||||
void Console::executeFile (const std::string& path)
|
void Console::executeFile (const std::string& path)
|
||||||
{
|
{
|
||||||
namespace bfs = boost::filesystem;
|
namespace bfs = boost::filesystem;
|
||||||
bfs::ifstream stream (bfs::path(path));
|
bfs::ifstream stream ((bfs::path(path)));
|
||||||
|
|
||||||
if (!stream.is_open())
|
if (!stream.is_open())
|
||||||
printError ("failed to open file: " + path);
|
printError ("failed to open file: " + path);
|
||||||
|
@ -27,7 +27,7 @@ void Manager::loadDefault (const std::string& file)
|
|||||||
void Manager::saveUser(const std::string& file)
|
void Manager::saveUser(const std::string& file)
|
||||||
{
|
{
|
||||||
namespace bfs = boost::filesystem;
|
namespace bfs = boost::filesystem;
|
||||||
bfs::ofstream fout(bfs::path(file));
|
bfs::ofstream fout((bfs::path(file)));
|
||||||
|
|
||||||
Ogre::ConfigFile::SectionIterator seci = mFile.getSectionIterator();
|
Ogre::ConfigFile::SectionIterator seci = mFile.getSectionIterator();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user