LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Qt "cannot call constructor for""a function-style cast remove the redundant ::QBrush" (https://www.linuxquestions.org/questions/linux-software-2/qt-cannot-call-constructor-for-a-function-style-cast-remove-the-redundant-qbrush-846019/)

Peterius 11-23-2010 07:40 AM

Qt "cannot call constructor for""a function-style cast remove the redundant ::QBrush"
 
This is an easy enough error to fix but I was wondering if someone could explain to me why its happening at all? I heard it was something in GCC, but I thought that sort of thing was legal syntax? Its in some code I didn't write so I'm not sure why its there in the first place, but I'm still curious.

John VV 11-24-2010 01:32 AM

what version of gcc are YOU using and what version of gcc was the qt code wrote for ?

there have been many changes from gcc 4.1 to gcc 4.5

ad the problem with things like QBrush::QBrush; change to QBrush ;

Peterius 11-24-2010 06:59 AM

Quote:

Originally Posted by John VV (Post 4169127)
what version of gcc are YOU using and what version of gcc was the qt code wrote for ?

there have been many changes from gcc 4.1 to gcc 4.5

ad the problem with things like QBrush::QBrush; change to QBrush ;

Yeah I know that, I'm asking about the rational behind the changes.

John VV 11-24-2010 03:07 PM

Quote:

Yeah I know that, I'm asking about the rational behind the changes.
to force coders to write SECURE code and less unneeded code built into a program .
to have less common everyday bugs in new code
to improve the code base

Peterius 11-24-2010 04:57 PM

Quote:

Originally Posted by John VV (Post 4169958)
to force coders to write SECURE code and less unneeded code built into a program .
to have less common everyday bugs in new code
to improve the code base

Actually, I'm asking about the specific change I posted...


All times are GMT -5. The time now is 03:59 AM.