1
0
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:
greye 2014-01-19 18:13:35 +04:00
parent 424d06a6f8
commit e02b04536f
3 changed files with 3 additions and 3 deletions

View File

@ -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();
} }

View File

@ -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);

View File

@ -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();