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

@@ -18,7 +18,7 @@ WeightedBp::WeightedBp (
WeightedBp::~WeightedBp (void)
WeightedBp::~WeightedBp()
{
for (size_t i = 0; i < links_.size(); i++) {
delete links_[i];
@@ -77,7 +77,7 @@ WeightedBp::WeightedLink::WeightedLink (
void
WeightedBp::createLinks (void)
WeightedBp::createLinks()
{
using std::cout;
using std::endl;
@@ -110,7 +110,7 @@ WeightedBp::createLinks (void)
void
WeightedBp::maxResidualSchedule (void)
WeightedBp::maxResidualSchedule()
{
if (nIters_ == 1) {
for (size_t i = 0; i < links_.size(); i++) {
@@ -314,7 +314,7 @@ WeightedBp::getVarToFactorMsg (const BpLink* _link) const
void
WeightedBp::printLinkInformation (void) const
WeightedBp::printLinkInformation() const
{
using std::cout;
using std::endl;