Whole Tomato Software Forums
Main Site
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
All Forums
Visual Assist
Feature Requests
handle ?-operator for Create From Usage
You must be registered to post a reply.
Click
here
to register.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Blue
Brown
Green
Red
Violet
Yellow
Message:
Forum code
is on.
Html is off.
[quote][i]Originally posted by Luke1410[/i] [br]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. [/quote]
Check to include your profile signature.
Check to subscribe to this topic.
T O P I C R E V I E W
Luke1410
Posted - May 13 2011 : 04:11:18 AM
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.
2 L A T E S T R E P L I E S (Newest First)
support
Posted - Jul 20 2011 : 02:00:32 AM
case=57444 is fixed in build 1854
feline
Posted - May 13 2011 : 3:58:41 PM
This is a good point, and thank you for the clear example. I have put in a feature request for this:
case=57444
© 2023 Whole Tomato Software, LLC
Snitz Forums 2000