add path conversion functions

This commit is contained in:
Jinhao
2016-01-05 01:11:15 +08:00
parent a2a7d1fc37
commit 7d7cce8d2a
4 changed files with 21 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ namespace paint
//Check for BMP
if (!helper)
{
std::ifstream ifs(file.c_str(), std::ios::binary);
std::ifstream ifs(file.string(), std::ios::binary);
if (ifs)
{
unsigned short meta = 0;