From d312d0ba10f3740d45b50ef8bcfc48e751e694fc Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 4 Nov 2019 18:50:45 +0200 Subject: libcamera: Remove unneeded semicolons Comply with the coding style by removing lots of unneeded semicolons. Fix a few other coding style violations on the lines touched by those fixes. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/cam/event_loop.h | 2 +- src/cam/options.cpp | 2 +- src/ipa/ipa_vimc.cpp | 4 ++-- src/ipa/rkisp1/rkisp1.cpp | 4 ++-- src/libcamera/include/ipa_proxy.h | 2 +- src/libcamera/include/pipeline_handler.h | 2 +- src/libcamera/message.cpp | 2 +- src/libcamera/object.cpp | 2 +- src/libcamera/pipeline_handler.cpp | 2 +- src/libcamera/proxy/ipa_proxy_linux.cpp | 2 +- src/libcamera/thread.cpp | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/cam/event_loop.h b/src/cam/event_loop.h index aaca5838..581c7cba 100644 --- a/src/cam/event_loop.h +++ b/src/cam/event_loop.h @@ -13,7 +13,7 @@ namespace libcamera { class EventDispatcher; -}; +} class EventLoop { diff --git a/src/cam/options.cpp b/src/cam/options.cpp index 1f0631ec..7e2dfa63 100644 --- a/src/cam/options.cpp +++ b/src/cam/options.cpp @@ -490,7 +490,7 @@ void OptionsParser::usage() else argument += " "; argument += std::string("--") + option.name; - }; + } if (option.argument != ArgumentNone) { if (option.argument == ArgumentOptional) diff --git a/src/ipa/ipa_vimc.cpp b/src/ipa/ipa_vimc.cpp index 63d578b4..9fd5212b 100644 --- a/src/ipa/ipa_vimc.cpp +++ b/src/ipa/ipa_vimc.cpp @@ -112,6 +112,6 @@ IPAInterface *ipaCreate() { return new IPAVimc(); } -}; +} -}; /* namespace libcamera */ +} /* namespace libcamera */ diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index 9a13f5c7..d741d567 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -251,6 +251,6 @@ IPAInterface *ipaCreate() { return new IPARkISP1(); } -}; +} -}; /* namespace libcamera */ +} /* namespace libcamera */ diff --git a/src/libcamera/include/ipa_proxy.h b/src/libcamera/include/ipa_proxy.h index 72216662..add40b4b 100644 --- a/src/libcamera/include/ipa_proxy.h +++ b/src/libcamera/include/ipa_proxy.h @@ -36,7 +36,7 @@ class IPAProxyFactory { public: IPAProxyFactory(const char *name); - virtual ~IPAProxyFactory(){}; + virtual ~IPAProxyFactory() {} virtual std::unique_ptr create(IPAModule *ipam) = 0; diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h index 42b90a4b..241af58b 100644 --- a/src/libcamera/include/pipeline_handler.h +++ b/src/libcamera/include/pipeline_handler.h @@ -111,7 +111,7 @@ class PipelineHandlerFactory { public: PipelineHandlerFactory(const char *name); - virtual ~PipelineHandlerFactory() { }; + virtual ~PipelineHandlerFactory() {} std::shared_ptr create(CameraManager *manager); diff --git a/src/libcamera/message.cpp b/src/libcamera/message.cpp index daf65322..c5478953 100644 --- a/src/libcamera/message.cpp +++ b/src/libcamera/message.cpp @@ -161,4 +161,4 @@ void InvokeMessage::invoke() * \brief The packed method invocation arguments */ -}; /* namespace libcamera */ +} /* namespace libcamera */ diff --git a/src/libcamera/object.cpp b/src/libcamera/object.cpp index db2c6f68..1f787271 100644 --- a/src/libcamera/object.cpp +++ b/src/libcamera/object.cpp @@ -223,4 +223,4 @@ void Object::disconnect(SignalBase *signal) } } -}; /* namespace libcamera */ +} /* namespace libcamera */ diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp index bf8c86d3..884feaa6 100644 --- a/src/libcamera/pipeline_handler.cpp +++ b/src/libcamera/pipeline_handler.cpp @@ -135,7 +135,7 @@ PipelineHandler::~PipelineHandler() { for (std::shared_ptr media : mediaDevices_) media->release(); -}; +} /** * \fn PipelineHandler::match(DeviceEnumerator *enumerator) diff --git a/src/libcamera/proxy/ipa_proxy_linux.cpp b/src/libcamera/proxy/ipa_proxy_linux.cpp index 4e6fa689..27b6639d 100644 --- a/src/libcamera/proxy/ipa_proxy_linux.cpp +++ b/src/libcamera/proxy/ipa_proxy_linux.cpp @@ -92,4 +92,4 @@ void IPAProxyLinux::readyRead(IPCUnixSocket *ipc) REGISTER_IPA_PROXY(IPAProxyLinux) -}; /* namespace libcamera */ +} /* namespace libcamera */ diff --git a/src/libcamera/thread.cpp b/src/libcamera/thread.cpp index 872ad1bd..e152af14 100644 --- a/src/libcamera/thread.cpp +++ b/src/libcamera/thread.cpp @@ -495,4 +495,4 @@ void Thread::moveObject(Object *object, ThreadData *currentData, moveObject(child, currentData, targetData); } -}; /* namespace libcamera */ +} /* namespace libcamera */ -- cgit v1.2.1