kopia lustrzana https://github.com/markondej/fm_transmitter
Code simplified
rodzic
78686ea6fd
commit
ae7d02eedb
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue