SIgnature suggestion for ...::SetValue() |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 02 May 2008 at 8:02am |
Hi,
CXTPPropertyGridItem::SetValue is declared as
virtual void CXTPPropertyGridItem::SetValue(CString strValue)
I suggest to change it to
virtual void CXTPPropertyGridItem::SetValue(const CString& strValue) |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Hello,
I also prefered this. But Codejock have cange many calls from Fkt(CString strText) to Fkt(LPCTSTR lpText) and not to Ftk(const CString& strText). i don't know why ? 98 percent of CString parameter call in our project come from a other CString and not from a const string "MyText". Jimmy |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |