From 9f903b33d8de9f069532fe9a6ffe64cb68281e87 Mon Sep 17 00:00:00 2001 From: Marcin Kondej Date: Wed, 29 Dec 2021 03:37:18 +0100 Subject: [PATCH] Removed default constructor of AllocatedMemory class --- fm_transmitter.cpp | 4 ++-- transmitter.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fm_transmitter.cpp b/fm_transmitter.cpp index 131de22..e7eb762 100644 --- a/fm_transmitter.cpp +++ b/fm_transmitter.cpp @@ -111,9 +111,9 @@ int main(int argc, char** argv) } catch (std::exception &catched) { std::cout << "Error: " << catched.what() << std::endl; finally(); - return 1; + return EXIT_FAILURE; } finally(); - return 0; + return EXIT_SUCCESS; } diff --git a/transmitter.cpp b/transmitter.cpp index 403e706..2f4bdb6 100644 --- a/transmitter.cpp +++ b/transmitter.cpp @@ -166,6 +166,7 @@ class Peripherals class AllocatedMemory { public: + AllocatedMemory() = delete; AllocatedMemory(unsigned size) { mBoxFd = mbox_open(); memSize = size;