I downloaded some code and I get this error. It looks ok to me.
Here's the declaration in the .h file.
void SetBorder
( bool useBorder, QBrush
& borderBrush
= QBrush() );
void SetBorder( bool useBorder, QBrush& borderBrush = QBrush() );
To copy to clipboard, switch view to plain text mode
Here's the .cpp code:
void JBWidget::SetBorder( bool useBorder, QBrush& borderBrush )
{
.....
}
void JBWidget::SetBorder( bool useBorder, QBrush& borderBrush )
{
.....
}
To copy to clipboard, switch view to plain text mode
Here's the error:
error: default argument for parameter of type 'QBrush&' has type 'QBrush'
Why can't it do this?
Cheers
Jeff
Bookmarks