Code simplified

master
Marcin Kondej 2024-01-02 15:17:01 +01:00
rodzic 78686ea6fd
commit ae7d02eedb
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -42,7 +42,7 @@ Transmitter *transmitter = nullptr;
void sigIntHandler(int sigNum)
{
if (transmitter != nullptr) {
if (transmitter) {
std::cout << "Stopping..." << std::endl;
transmitter->Stop();
enable = false;
@ -110,7 +110,7 @@ int main(int argc, char** argv)
std::cout << "Error: " << catched.what() << std::endl;
result = EXIT_FAILURE;
}
if (transmitter != nullptr) {
if (transmitter) {
auto temp = transmitter;
transmitter = nullptr;
delete temp;