Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Make CParameterMgr::init private
Browse files Browse the repository at this point in the history
Since 3adb785, CParameterMgr::init should not
be called directly. However, it was kept public and CParameterMgrFullConnector
was using it.

Make it private and remove its use from CParameterMgrFullConnector.

Signed-off-by: Frederic Boisnard <[email protected]>
Signed-off-by: David Wagner <[email protected]>
  • Loading branch information
kwembel authored and dawagner committed Feb 18, 2015
1 parent fe2f8a6 commit ff3a60a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion parameter/ParameterMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class CParameterMgr : private CElement
* @return true if no error occurred, false otherwise.
*/
bool load(std::string& strError);
virtual bool init(std::string& strError);

// Selection Criteria
CSelectionCriterionType* createSelectionCriterionType(bool bIsInclusive);
Expand Down Expand Up @@ -359,6 +358,9 @@ class CParameterMgr : private CElement
CParameterMgr(const CParameterMgr&);
CParameterMgr& operator=(const CParameterMgr&);

// Init
virtual bool init(std::string& strError);

// Logging (done by root)
virtual void doLog(bool bIsWarning, const std::string& strLog) const;
virtual void nestLog() const;
Expand Down
2 changes: 1 addition & 1 deletion parameter/ParameterMgrFullConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ CParameterMgrFullConnector::~CParameterMgrFullConnector()
bool CParameterMgrFullConnector::start(string& strError)
{
// Create data structure & Init flow
return _pParameterMgr->load(strError) && _pParameterMgr->init(strError);
return _pParameterMgr->load(strError);
}

void CParameterMgrFullConnector::setLogger(CParameterMgrFullConnector::ILogger* pLogger)
Expand Down

0 comments on commit ff3a60a

Please sign in to comment.