Skip to content
Browse files

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

  • Loading branch information...
1 parent 40086ae commit 96c2aebb4e46cc7071a1ee4e0402ef5414d66ef6 Jonathan Marshall committed with
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;
/*

0 comments on commit 96c2aeb

Please sign in to comment.
Something went wrong with that request. Please try again.