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
 Create From Usage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vertexwahn
Senior Member

35 Posts

Posted - Jun 21 2011 :  5:14:54 PM  Show Profile  Reply with Quote

class Foo
{
public:
	Foo(const std::string& bar) : m_Foo(bar)
	{

	}
};


Right click on m_Foo - choose "Create From Usage..." - the dialog has only two options:
(*) Method in Foo
( ) Function

what the user wants:
(*) Member variable in Foo

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 21 2011 :  11:16:22 PM  Show Profile  Reply with Quote
Excellent description

I have reopened the

case=31277

Strange enough, but it seems that it only fails when the variable name contains the sub-string "Fo". Don't ask me why
Go to Top of Page

Vertexwahn
Senior Member

35 Posts

Posted - Jun 22 2011 :  11:00:25 AM  Show Profile  Reply with Quote
I had the same problem with a variable that starts with m_Auto...
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 22 2011 :  6:29:14 PM  Show Profile  Reply with Quote
I wasn't able to reproduce this with m_Auto or something after m_Auto...



Maybe some additional circumstances are given in your source code
Go to Top of Page

Vertexwahn
Senior Member

35 Posts

Posted - Jun 23 2011 :  12:30:49 PM  Show Profile  Reply with Quote
my class resides in a nested namespace
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 24 2011 :  08:53:04 AM  Show Profile  Reply with Quote
Wonderful. I was able to reproduce the problem with any name when the class is not globally scoped:

case=58369
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 20 2011 :  01:59:57 AM  Show Profile  Reply with Quote
case=31277 and case=58369 are 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