mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Fix test code to work on some environments.
const char * is more preferable than string for ifstream constructor.
This commit is contained in:
parent
e4cf012522
commit
bb9679b51a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user