diff options
| author | Tannin <devnull@localhost> | 2014-11-28 11:19:20 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-11-28 11:19:20 +0100 |
| commit | 99de80e7224f2491fb7518e32f195ad6a912b624 (patch) | |
| tree | ef8f1d3ba16b7681beaae5cf67d0f5671e486061 /src/executableslist.cpp | |
| parent | 78f628e0af2f2df562c40ac1424b432b6a969055 (diff) | |
replaced all uses of NULL with nullptr
fixed a few placed where NULL was used as a number or boolean
Diffstat (limited to 'src/executableslist.cpp')
| -rw-r--r-- | src/executableslist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/executableslist.cpp b/src/executableslist.cpp index c46cea10..03f2b7c9 100644 --- a/src/executableslist.cpp +++ b/src/executableslist.cpp @@ -130,7 +130,7 @@ Executable *ExecutablesList::findExe(const QString &title) return &*iter;
}
}
- return NULL;
+ return nullptr;
}
@@ -144,7 +144,7 @@ bool ExecutablesList::titleExists(const QString &title) const void ExecutablesList::addExecutable(const Executable &executable)
{
Executable *existingExe = findExe(executable.m_Title);
- if (existingExe != NULL) {
+ if (existingExe != nullptr) {
*existingExe = executable;
} else {
m_Executables.push_back(executable);
@@ -158,7 +158,7 @@ void ExecutablesList::addExecutable(const QString &title, const QString &executa {
QFileInfo file(executableName);
Executable *existingExe = findExe(title);
- if (existingExe != NULL) {
+ if (existingExe != nullptr) {
existingExe->m_Title = title;
existingExe->m_CloseMO = closeMO;
existingExe->m_BinaryInfo = file;
|
