From 2d6077e1aaeb8134853d28ed53234c2513bf3beb Mon Sep 17 00:00:00 2001 From: Clovis Durand Date: Thu, 9 Apr 2020 17:23:25 +0200 Subject: [PATCH] [#28] Fixed OSCOODREST warnings Signed-off-by: Clovis Durand --- generator/inc/OSCOODREST.hpp | 4 ++-- generator/src/OSCOODREST.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/generator/inc/OSCOODREST.hpp b/generator/inc/OSCOODREST.hpp index a93f1d8..b44e518 100644 --- a/generator/inc/OSCOODREST.hpp +++ b/generator/inc/OSCOODREST.hpp @@ -32,9 +32,9 @@ class OSCOOD; class API_EXPORT OSCOODREST : public RESTServer { public: /* Create singleton */ - static OSCOODREST * const createInstance(const std::string &pAddr, const std::string pPort, const std::string &pPath); + static OSCOODREST *createInstance(const std::string &pAddr, const std::string pPort, const std::string &pPath); /* Get singleton */ - static OSCOODREST * const instance(void); + static OSCOODREST *instance(void); /* Destructors */ virtual ~OSCOODREST(); diff --git a/generator/src/OSCOODREST.cpp b/generator/src/OSCOODREST.cpp index 6503697..73ef93a 100644 --- a/generator/src/OSCOODREST.cpp +++ b/generator/src/OSCOODREST.cpp @@ -49,7 +49,7 @@ OSCOODREST::~OSCOODREST() { } /* Get singleton */ -OSCOODREST * const OSCOODREST::createInstance(const std::string &pAddr, const std::string pPort, const std::string &pPath) { +OSCOODREST *OSCOODREST::createInstance(const std::string &pAddr, const std::string pPort, const std::string &pPath) { if(nullptr == sSingleton) { sSingleton = new OSCOODREST(pAddr, pPort, pPath); } else { @@ -61,7 +61,7 @@ OSCOODREST * const OSCOODREST::createInstance(const std::string &pAddr, const st return sSingleton; } -OSCOODREST * const OSCOODREST::instance(void) { +OSCOODREST *OSCOODREST::instance(void) { return sSingleton; } @@ -105,6 +105,7 @@ bool OSCOODREST::addOD(OSCOOD * const pOD) { /* REST Callbacks */ HttpStatus OSCOODREST::OSCOOD_GET(const std::string &pPath, const std::vector &pQueries, std::string &pOut) { (void)pQueries; + (void)pPath; /* Get OSCOODREST instance */ OSCOODREST * const lRESTServer = OSCOODREST::instance();