Skip to content

Commit

Permalink
Refine syntax: expose overloaded inherited functions (sonic-net#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Nov 9, 2017
1 parent 64d5a5a commit 165e2dc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cfgmgr/intfmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class IntfMgr : public Orch
{
public:
IntfMgr(DBConnector *cfgDb, DBConnector *appDb, DBConnector *stateDb, const vector<string> &tableNames);
using Orch::doTask;

private:
ProducerStateTable m_appIntfTableProducer;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/intfmgrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int main(int argc, char **argv)
}
if (ret == Select::TIMEOUT)
{
((Orch *)&intfmgr)->doTask();
intfmgr.doTask();
continue;
}

Expand Down
3 changes: 1 addition & 2 deletions cfgmgr/vlanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,11 @@ bool VlanMgr::removeHostVlanMember(int vlan_id, const string &port_alias)

bool VlanMgr::isVlanMacOk()
{
return !(!gMacAddress);
return !!gMacAddress;
}

void VlanMgr::doVlanTask(Consumer &consumer)
{

if (!isVlanMacOk())
{
SWSS_LOG_DEBUG("VLAN mac not ready, delaying VLAN task");
Expand Down
1 change: 1 addition & 0 deletions cfgmgr/vlanmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class VlanMgr : public Orch
{
public:
VlanMgr(DBConnector *cfgDb, DBConnector *appDb, DBConnector *stateDb, const vector<string> &tableNames);
using Orch::doTask;

private:
ProducerStateTable m_appVlanTableProducer, m_appVlanMemberTableProducer;
Expand Down
2 changes: 1 addition & 1 deletion cfgmgr/vlanmgrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main(int argc, char **argv)
}
if (ret == Select::TIMEOUT)
{
((Orch *)&vlanmgr)->doTask();
vlanmgr.doTask();
continue;
}

Expand Down

0 comments on commit 165e2dc

Please sign in to comment.