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/Folders/src/folderItem.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Folders/src/folderItem.cpp') diff --git a/plugins/Folders/src/folderItem.cpp b/plugins/Folders/src/folderItem.cpp index f277a27ec3..0b86c2c357 100644 --- a/plugins/Folders/src/folderItem.cpp +++ b/plugins/Folders/src/folderItem.cpp @@ -28,8 +28,8 @@ CFolderItem::CFolderItem(const char *sectionName, const char *name, const wchar_ m_tszUserName = mir_wstrdup(userName); else m_tszUserName = mir_a2u(name); - m_tszFormat = NULL; - m_tszOldFormat = NULL; + m_tszFormat = nullptr; + m_tszOldFormat = nullptr; GetDataFromDatabase(format); FolderCreateDirectory(); } @@ -84,13 +84,13 @@ void CFolderItem::Save() int CFolderItem::FolderCreateDirectory(int showFolder) { - if (m_tszFormat == NULL) + if (m_tszFormat == nullptr) return FOLDER_SUCCESS; CMStringW buffer(ExpandPath(m_tszFormat)); CreateDirectoryTreeW(buffer); if (showFolder) - ShellExecute(NULL, L"explore", buffer, NULL, NULL, SW_SHOW); + ShellExecute(nullptr, L"explore", buffer, nullptr, nullptr, SW_SHOW); return (DirectoryExists(buffer)) ? FOLDER_SUCCESS : FOLDER_FAILURE; } @@ -107,7 +107,7 @@ int CFolderItem::FolderDeleteOldDirectory(int showFolder) RemoveDirectories(buffer); int res = (DirectoryExists(buffer)) ? FOLDER_FAILURE : FOLDER_SUCCESS; if ((res == FOLDER_FAILURE) && (showFolder)) - ShellExecute(NULL, L"explore", buffer, NULL, NULL, SW_SHOW); + ShellExecute(nullptr, L"explore", buffer, nullptr, nullptr, SW_SHOW); return res; } -- cgit v1.2.3