diff options
author | GENIVI Audio Manager Maintainer <genivi-maint-audiomanager@smtp1.genivi.org> | 2018-07-12 17:11:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-12 17:11:02 +0200 |
commit | 4f261b37238d310cc74ca5b1d9ca244ec3c5b70e (patch) | |
tree | d0e8c492a9da884aa57f6464dc515605eba705e0 /AudioManagerUtilities/src/CAmCommandLineSingleton.cpp | |
parent | f93c2b7d4840b181a6375da2bde0a3679278a6b6 (diff) | |
parent | 95c696f818b6840bcbefe6d376ff01fa02dfd772 (diff) | |
download | audiomanager-4f261b37238d310cc74ca5b1d9ca244ec3c5b70e.tar.gz |
Merge pull request #35 from JensLorenz/issue_24_clean_up_whitespace
Issue #24 clean up whitespace
Diffstat (limited to 'AudioManagerUtilities/src/CAmCommandLineSingleton.cpp')
-rw-r--r-- | AudioManagerUtilities/src/CAmCommandLineSingleton.cpp | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp index 1170c31..493b842 100644 --- a/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp +++ b/AudioManagerUtilities/src/CAmCommandLineSingleton.cpp @@ -19,41 +19,46 @@ namespace am { -static TCLAP::CmdLine* pSingleCmdLine = NULL; +static TCLAP::CmdLine *pSingleCmdLine = NULL; -CAmCommandLineSingleton::CAmCommandLineSingleton() { - // TODO Auto-generated constructor stub +CAmCommandLineSingleton::CAmCommandLineSingleton() +{ + // TODO Auto-generated constructor stub } -TCLAP::CmdLine* CAmCommandLineSingleton::instanciateOnce(const std::string& message, - const char delimiter, - const std::string& version, - bool helpAndVersion) +TCLAP::CmdLine *CAmCommandLineSingleton::instanciateOnce(const std::string &message, + const char delimiter, + const std::string &version, + bool helpAndVersion) { - if(NULL==pSingleCmdLine) - { - pSingleCmdLine = new TCLAP::CmdLine(message,delimiter,version,helpAndVersion); - } - return pSingleCmdLine; + if (NULL == pSingleCmdLine) + { + pSingleCmdLine = new TCLAP::CmdLine(message, delimiter, version, helpAndVersion); + } + + return pSingleCmdLine; } -TCLAP::CmdLine* CAmCommandLineSingleton::instance() +TCLAP::CmdLine *CAmCommandLineSingleton::instance() { - assert(NULL!=pSingleCmdLine); - return pSingleCmdLine; + assert(NULL != pSingleCmdLine); + return pSingleCmdLine; } void CAmCommandLineSingleton::deleteInstance() { - if (pSingleCmdLine) - delete pSingleCmdLine; - - pSingleCmdLine=NULL; + if (pSingleCmdLine) + { + delete pSingleCmdLine; + } + + pSingleCmdLine = NULL; } -CAmCommandLineSingleton::~CAmCommandLineSingleton() { - // TODO Auto-generated destructor stub +CAmCommandLineSingleton::~CAmCommandLineSingleton() +{ + // TODO Auto-generated destructor stub } } /* namespace am */ |