fix most vexing parse issue

deque
greye 11 years ago
parent 424d06a6f8
commit e02b04536f

@ -201,7 +201,7 @@ namespace
add_setting("Archives", "Archive 1", "Bloodmoon.bsa", ini);
}
bfs::ofstream inistream(ini_path)
bfs::ofstream inistream((ini_path));
inistream << ini;
inistream.close();
}

@ -198,7 +198,7 @@ namespace MWGui
void Console::executeFile (const std::string& path)
{
namespace bfs = boost::filesystem;
bfs::ifstream stream (bfs::path(path));
bfs::ifstream stream ((bfs::path(path)));
if (!stream.is_open())
printError ("failed to open file: " + path);

@ -27,7 +27,7 @@ void Manager::loadDefault (const std::string& file)
void Manager::saveUser(const std::string& file)
{
namespace bfs = boost::filesystem;
bfs::ofstream fout(bfs::path(file));
bfs::ofstream fout((bfs::path(file)));
Ogre::ConfigFile::SectionIterator seci = mFile.getSectionIterator();

Loading…
Cancel
Save