diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/Folders/src/folderItem.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Folders/src/folderItem.cpp')
-rw-r--r-- | plugins/Folders/src/folderItem.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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;
}
|