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:
@@ -27,7 +27,7 @@ ParfactorList::ParfactorList (const Parfactors& pfs)
|
||||
|
||||
|
||||
|
||||
ParfactorList::~ParfactorList (void)
|
||||
ParfactorList::~ParfactorList()
|
||||
{
|
||||
ParfactorList::const_iterator it = pfList_.begin();
|
||||
while (it != pfList_.end()) {
|
||||
@@ -97,7 +97,7 @@ ParfactorList::removeAndDelete (std::list<Parfactor*>::iterator it)
|
||||
|
||||
|
||||
bool
|
||||
ParfactorList::isAllShattered (void) const
|
||||
ParfactorList::isAllShattered() const
|
||||
{
|
||||
if (pfList_.size() <= 1) {
|
||||
return true;
|
||||
@@ -119,7 +119,7 @@ ParfactorList::isAllShattered (void) const
|
||||
|
||||
|
||||
void
|
||||
ParfactorList::print (void) const
|
||||
ParfactorList::print() const
|
||||
{
|
||||
struct sortByParams {
|
||||
bool operator() (const Parfactor* pf1, const Parfactor* pf2)
|
||||
|
Reference in New Issue
Block a user