From: Tsuda Kageyu Date: Wed, 20 May 2015 17:03:06 +0000 (+0900) Subject: Fix test code to work on some environments. X-Git-Tag: v1.10beta~80^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb9679b51a64036c37add83adf1adea12e0a3c7c;p=taglib Fix test code to work on some environments. const char * is more preferable than string for ifstream constructor. --- diff --git a/tests/utils.h b/tests/utils.h index 8be65ac0..871a8e50 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -39,7 +39,7 @@ inline string copyFile(const string &filename, const string &ext) #endif string sourceFileName = testFilePath(filename) + ext; - ifstream source(sourceFileName, std::ios::binary); + ifstream source(sourceFileName.c_str(), std::ios::binary); ofstream destination(testFileName, std::ios::binary); destination << source.rdbuf(); return string(testFileName);