mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- more code cleanup based on suggestions from cppcheck
This commit is contained in:
@@ -229,7 +229,7 @@ vector<char> replaceAllBetweenTokens(vector<char>& context, const string &startT
|
||||
string replaceAllBetweenTokens(string& context, const string &startToken, const string &endToken, const string &newText, bool removeTokens=true);
|
||||
bool removeFile(string file);
|
||||
bool renameFile(string oldFile, string newFile);
|
||||
void removeFolder(const string path);
|
||||
void removeFolder(const string &path);
|
||||
off_t getFileSize(string filename);
|
||||
bool searchAndReplaceTextInFile(string fileName, string findText, string replaceText, bool simulateOnly);
|
||||
void copyFileTo(string fromFileName, string toFileName);
|
||||
|
@@ -94,7 +94,7 @@ LONG WINAPI UnhandledExceptionFilter2(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
||||
// Misc
|
||||
// =====================================================
|
||||
LPWSTR Ansi2WideString(LPCSTR lpaszString);
|
||||
std::string utf8_encode(const std::wstring wstr);
|
||||
std::string utf8_encode(const std::wstring &wstr);
|
||||
std::wstring utf8_decode(const std::string &str);
|
||||
std::string getRegKey(const std::string& location, const std::string& name);
|
||||
|
||||
|
Reference in New Issue
Block a user