Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[loadfile] CFile::Read() can take a std::string, no need for .c_str()

  • Loading branch information...
commit 96c2aebb4e46cc7071a1ee4e0402ef5414d66ef6 1 parent 40086ae
Jonathan Marshall authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/utils/FileUtils.cpp
View
2  xbmc/utils/FileUtils.cpp
@@ -142,7 +142,7 @@ unsigned int CFileUtils::LoadFile(const std::string &filename, void* &outputBuff
unsigned int inputBuffSize = 0;
XFILE::CFile file;
- if (!file.Open(filename.c_str(), READ_TRUNCATED))
+ if (!file.Open(filename, READ_TRUNCATED))
return 0;
/*
Please sign in to comment.
Something went wrong with that request. Please try again.