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

@@ -110,7 +110,7 @@ Factor::multiply (Factor& g)
std::string
Factor::getLabel (void) const
Factor::getLabel() const
{
std::stringstream ss;
ss << "f(" ;
@@ -125,7 +125,7 @@ Factor::getLabel (void) const
void
Factor::print (void) const
Factor::print() const
{
Vars vars;
for (size_t i = 0; i < args_.size(); i++) {
@@ -146,7 +146,7 @@ Factor::print (void) const
void
Factor::sumOutFirstVariable (void)
Factor::sumOutFirstVariable()
{
size_t sep = params_.size() / 2;
if (Globals::logDomain) {
@@ -169,7 +169,7 @@ Factor::sumOutFirstVariable (void)
void
Factor::sumOutLastVariable (void)
Factor::sumOutLastVariable()
{
Params::iterator first1 = params_.begin();
Params::iterator first2 = params_.begin();