diff --git a/bbruntime/bbfilesystem.cpp b/bbruntime/bbfilesystem.cpp index a87d8489..6a68fa14 100644 --- a/bbruntime/bbfilesystem.cpp +++ b/bbruntime/bbfilesystem.cpp @@ -214,7 +214,7 @@ void bbUnzip(BBStr* src, BBStr* dst, BBStr* password) { UnzipItem(hz, zi, ze.name); } CloseZip(hz); - delete src, dst, password; + delete src; delete dst; delete password; } BBStr* bbAbsolutePath(BBStr* path) { diff --git a/bbruntime/bbruntime.cpp b/bbruntime/bbruntime.cpp index 35c84221..b6aafc94 100644 --- a/bbruntime/bbruntime.cpp +++ b/bbruntime/bbruntime.cpp @@ -25,7 +25,7 @@ void bbDisableClose() { void bbAppTitle(BBStr* ti, BBStr* cp) { gx_runtime->setTitle(*ti, *cp); - delete ti, cp; + delete ti; delete cp; } void bbRuntimeError(BBStr* str) { @@ -167,7 +167,7 @@ void bbSetClipboardContents(BBStr* contents) { void bbMessageBox(BBStr* title, BBStr* text) { MessageBoxW(gx_runtime->hwnd, UTF8::convertToUtf16(text->c_str()).c_str(), UTF8::convertToUtf16(title->c_str()).c_str(), MB_APPLMODAL | MB_ICONINFORMATION); - delete title, text; + delete title; delete text; } void bbDebugLog(BBStr* t) { diff --git a/bbruntime/bbsockets.cpp b/bbruntime/bbsockets.cpp index 85aa1a0f..f62ac19c 100644 --- a/bbruntime/bbsockets.cpp +++ b/bbruntime/bbsockets.cpp @@ -475,7 +475,7 @@ BBStr* bbParseDomainTXT(BBStr* txt, BBStr* name) { result = s1.substr(n); if ((a = result.find(';')) != std::string::npos) result = result.substr(s2.length() + 1, a - s2.length() - 1); - delete txt, name; + delete txt; delete name; return new BBStr(result); } @@ -531,7 +531,7 @@ void bbDownloadFile(BBStr* url, BBStr* file) { InternetCloseHandle(hSession); hSession = NULL; } - delete url, file; + delete url; delete file; } void sockets_link(void(*rtSym)(const char*, void*)) { diff --git a/bbruntime/bbstring.cpp b/bbruntime/bbstring.cpp index 11bf4fe6..9af160e9 100644 --- a/bbruntime/bbstring.cpp +++ b/bbruntime/bbstring.cpp @@ -27,7 +27,7 @@ BBStr* bbRight(BBStr* s, int n) { BBStr* bbReplace(BBStr* s, BBStr* from, BBStr* to) { std::string str = UTF8::replaceAll(s->c_str(), from->c_str(), to->c_str()); - delete s, from, to; + delete s; delete from; delete to; return new BBStr(str); } diff --git a/gxruntime/gxutf8.cpp b/gxruntime/gxutf8.cpp index 37f6c52f..f19c85da 100644 --- a/gxruntime/gxutf8.cpp +++ b/gxruntime/gxutf8.cpp @@ -198,7 +198,7 @@ std::string UTF8::replaceAll(const std::string& string, const std::string& patte for (unsigned pos = str.find(pattern, 0); pos != std::string::npos; pos = str.find(pattern, pos + nsize)) { - str.replace(pos, psize, newpat); + str = str.replace(pos, psize, newpat); } return str; }