f(void) vs f()

"In fact, the f(void) style has been called an "abomination" by Bjarne Stroustrup, the creator of C++, Dennis Ritchie, the co-creator of C, and Doug McIlroy, head of the research department where Unix was born."
This commit is contained in:
Tiago Gomes
2013-02-28 19:45:37 +00:00
parent c8b639f495
commit 902624f557
45 changed files with 493 additions and 493 deletions

View File

@@ -48,7 +48,7 @@ Var::setEvidence (int evidence)
std::string
Var::label (void) const
Var::label() const
{
if (Var::varsHaveInfo()) {
return Var::getVarInfo (varId_).label;
@@ -61,7 +61,7 @@ Var::label (void) const
States
Var::states (void) const
Var::states() const
{
if (Var::varsHaveInfo()) {
return Var::getVarInfo (varId_).states;
@@ -97,7 +97,7 @@ Var::getVarInfo (VarId vid)
bool
Var::varsHaveInfo (void)
Var::varsHaveInfo()
{
return varsInfo_.empty() == false;
}
@@ -105,7 +105,7 @@ Var::varsHaveInfo (void)
void
Var::clearVarsInfo (void)
Var::clearVarsInfo()
{
varsInfo_.clear();
}