Skip to content

Commit

Permalink
[#28] Fixed OSCOODREST warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Apr 9, 2020
1 parent 923af48 commit 2d6077e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generator/inc/OSCOODREST.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 3 additions & 2 deletions generator/src/OSCOODREST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}

Expand Down Expand Up @@ -105,6 +105,7 @@ bool OSCOODREST::addOD(OSCOOD * const pOD) {
/* REST Callbacks */
HttpStatus OSCOODREST::OSCOOD_GET(const std::string &pPath, const std::vector<std::string> &pQueries, std::string &pOut) {
(void)pQueries;
(void)pPath;

/* Get OSCOODREST instance */
OSCOODREST * const lRESTServer = OSCOODREST::instance();
Expand Down

0 comments on commit 2d6077e

Please sign in to comment.