From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/FTPFileYM/src/job_generic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/FTPFileYM/src/job_generic.cpp') diff --git a/plugins/FTPFileYM/src/job_generic.cpp b/plugins/FTPFileYM/src/job_generic.cpp index ddeb5ee282..719da74d3f 100644 --- a/plugins/FTPFileYM/src/job_generic.cpp +++ b/plugins/FTPFileYM/src/job_generic.cpp @@ -58,7 +58,7 @@ int GenericJob::openFileDialog() mir_snwprintf(temp, L"%s\0*.*\0", TranslateT("All Files (*.*)")); OPENFILENAME ofn = { 0 }; ofn.lStructSize = sizeof(ofn); - ofn.hwndOwner = 0; + ofn.hwndOwner = nullptr; ofn.lpstrFilter = temp; ofn.nFilterIndex = 1; ofn.lpstrFile = m_tszFilePath; @@ -70,11 +70,11 @@ int GenericJob::openFileDialog() int GenericJob::openFolderDialog() { - BROWSEINFO bi = { 0 }; + BROWSEINFO bi = {}; bi.lpszTitle = TranslateT("FTP File - Select a folder"); bi.ulFlags = BIF_NEWDIALOGSTYLE | BIF_NONEWFOLDERBUTTON | BIF_DONTGOBELOWDOMAIN; LPITEMIDLIST pidl = SHBrowseForFolder(&bi); - if (pidl != 0) { + if (pidl != nullptr) { SHGetPathFromIDList(pidl, m_tszFilePath); CoTaskMemFree(pidl); return 1; -- cgit v1.2.3