fix most write-strings warning.

This commit is contained in:
aliaspider committed 2018-03-23 04:21:46 +01:00
1 parent 198c946218
commit 3fbb340450
6 files changed
+18 -22

No files matched your search

+3 -3
View File
@@ -247,7 +247,7 @@ void WindowsHost::BootDone() {
Core_EnableStepping(!g_Config.bAutoRun);
}
static std::string SymbolMapFilename(const char *currentFilename, char* ext) {
static std::string SymbolMapFilename(const char *currentFilename, const char* ext) {
FileInfo info;
std::string result = currentFilename;
@@ -256,9 +256,9 @@ static std::string SymbolMapFilename(const char *currentFilename, char* ext) {
getFileInfo(currentFilename, &info);
if (info.isDirectory) {
#ifdef _WIN32
char* slash = "\\";
const char* slash = "\\";
#else
char* slash = "/";
const char* slash = "/";
#endif
if (!endsWith(result,slash))
result += slash;