I downloaded some code and I get this error. It looks ok to me.

Here's the declaration in the .h file.

Qt Code:
  1. void SetBorder( bool useBorder, QBrush& borderBrush = QBrush() );
To copy to clipboard, switch view to plain text mode 

Here's the .cpp code:
Qt Code:
  1. void JBWidget::SetBorder( bool useBorder, QBrush& borderBrush )
  2. {
  3. .....
  4. }
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