Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 15.0.1
-
None
Description
I have the following code:
bool foo(); int main(){ if(foo){ //Oops, forgot the parentheses //Do stuff } return 0; }
As expected, Qt Creator gives me a warning saying "Address of function 'isProcessRunning' will always evaluate to 'true' (fix available)". This is great, but the problem is that if I click on the light bulb to apply the fix, it changes the line to `if(&foo)`, whereas I would expect it to change it to `if(foo())`.