Build fix for tests, since you don't always have an ifstream/ofstream constructor that takes a string reference

This commit is contained in:
Brian Cox 2017-03-27 16:43:00 -07:00
parent 2c03fdf878
commit 7d66656c10
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ void TestFSPropCalc()
// oh boy! I finally get to test property calculation!
d.TraceDebug("Creating FCO c:\\temp\\foo.bin\n");
std::ofstream fstr(foo_bin);
std::ofstream fstr(foo_bin.c_str());
if(fstr.bad())
{
d.TraceError("Unable to create test file %s!\n", foo_bin.c_str());

View File

@ -75,7 +75,7 @@ void test_policy_file(const std::string& polfile)
pol_path.append(polfile);
std::ifstream in;
in.open(pol_path);
in.open(pol_path.c_str());
if( ! in.good() )
throw eParserHelper( _T("couldn't open test file") );