Skip to content

Commit f3af98b

Browse files
committed
Replaced exceptions by signaling errors in main program
1 parent 7516d0b commit f3af98b

File tree

4 files changed

+190
-175
lines changed

4 files changed

+190
-175
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
117117
- Use of smart pointers
118118
- UI code streamlining
119119
- Improved `install_pr` script
120+
- Replaced exceptions by signaling errors in main program and standalone grabbers
120121
- Enhanced resilience and error handling
121122

122123
- **Build:**

libsrc/utils/Logger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ void Logger::deleteInstance(const QString & name, const QString & subName)
6666
if (name.isEmpty())
6767
{
6868
for (auto *logger : std::as_const(LoggerMap)) {
69-
delete logger;
69+
logger->deleteLater();
7070
}
7171

7272
LoggerMap.clear();
7373
}
7474
else
7575
{
76-
delete LoggerMap.value(name + subName, nullptr);
76+
LoggerMap.value(name + subName, nullptr)->deleteLater();
7777
LoggerMap.remove(name + subName);
7878
}
7979
}

src/hyperiond/detectProcess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <tlhelp32.h>
1515
#endif
1616

17-
QStringList getProcessIdsByProcessName(const char *processName)
17+
QStringList getProcessIdsByProcessName(const QString& processName)
1818
{
1919
QStringList listOfPids;
2020

0 commit comments

Comments
 (0)