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
 Technical Support
 Superflous Parentheses
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - May 12 2011 :  03:51:13 AM  Show Profile  Reply with Quote
Hi,

in below example VA will complete the name with superflous parentheses:

----

#define _( text ) L##text

class wxString
{
public:
wxString( const wchar_t * );
};

namespace jwx
{
class ResText
{
public:
ResText(const wxString& keydomain, const wxString& key, const wxString& defaulttext);

/// Get resource text
const wxString& Get() const;

};
}


jwx::ResText ArgText(_("CommandLine"), _("SwitchText"), _("Write default texts to file"));


void main()
{
Ar
}
---

When placing the cursor after the "Ar" and typing "g" VA will suggest "ArgText". When hitting tab it will complete to "ArgText()". But there is no operator () for this static object. (I was rather about to type ".Get" but first have to delete the parentheses.)

Joachim

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 12 2011 :  9:49:25 PM  Show Profile  Reply with Quote
I am seeing the same effect here. I have put in a bug report for this:

case=57420

Thank you for the clear description.
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