Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 handle ?-operator for Create From Usage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luke1410
Senior Member

32 Posts

Posted - May 13 2011 :  04:11:18 AM  Show Profile  Reply with Quote
testcode:
class A
{};

void foo()
{
A a;
const char* test = a.IsValid() ? "valid" : "invalid";
}

Steps to reproduce:
1. right click on IsValid() and choose: Refactor -> CreateFromUsage

Actual result:
The suggestion in the CreateMethod box shows: "const char* IsValid()".

Expected result:
The suggestion in the CreateMethod box shows: "bool IsValid()".

This is expected, since the ?-operator is used within that line.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - May 13 2011 :  3:58:41 PM  Show Profile  Reply with Quote
This is a good point, and thank you for the clear example. I have put in a feature request for this:

case=57444

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 20 2011 :  02:00:32 AM  Show Profile  Reply with Quote
case=57444 is fixed in build 1854

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000