Menu ▾ ▴

#1 default argument in cpp

open
nobody
None
5
2006-08-06
2006-08-06
Anonymous
No

Hi,

My name is Fabio and I am italian (==> my english is
very poor)

My Computer is a AMD64 whit Gentoo linux gcc (GCC)
3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)

After "make" command I found this error:

ERROR:
place.cpp:43: error: default argument given for
parameter 1 of `Places::Places(bool)

CHANGE:
Places::Places( bool AutoDelete = false)
IN:
Places::Places( bool AutoDelete)

ERROR:
configfile.cpp:204: error: default argument given for
parameter 3 of `bool ConfigFile::findSection(const
QString&, Section**, bool)

CHANGE:
bool ConfigFile::findSection( const QString &section,
Section **thesection, bool create=true )
IN:
bool ConfigFile::findSection( const QString &section,
Section **thesection, bool create )

ERROR:
limage.cpp:127: error: default argument given for
parameter 3 of `void LImage::gotoXY(int, int, bool)'

CHANGE:
void LImage::gotoXY( int x, int y, bool tell_sister=true )
IN:
void LImage::gotoXY( int x, int y, bool tell_sister )

ERROR:
limage.cpp:113: error: default argument given for
parameter 2 of `void LImage::gotoXY(QPoint, bool)

CHANGE:
void LImage::gotoXY( QPoint p, bool tell_sister=true )
IN:
void LImage::gotoXY( QPoint p, bool tell_sister )

Discussion


Log in to post a comment.