Correct cleaning string and remove unused vars

This commit is contained in:
lainon committed 2022-09-30 12:26:30 +03:00
1 parent 89dab444c4
commit fec708489a
32 files changed
+38 -48

No files matched your search

+2 -2
View File
@@ -49,12 +49,12 @@ bool InputBox_GetString(HINSTANCE hInst, HWND hParent, const wchar_t *title, con
if (defaultValue.size() < 255)
textBoxContents = ConvertUTF8ToWString(defaultValue);
else
textBoxContents = L"";
textBoxContents.clear();
if (title != NULL)
windowTitle = title;
else
windowTitle = L"";
windowTitle.clear();
if (IDOK == DialogBox(hInst, (LPCWSTR)IDD_INPUTBOX, hParent, InputBoxFunc)) {
outvalue = ConvertWStringToUTF8(out);