Print Page | Close Window

CXTPLogFont

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24348
Printed Date: 22 December 2024 at 8:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPLogFont
Posted By: gpm1
Subject: CXTPLogFont
Date Posted: 05 January 2023 at 3:00am
For what purpose does the copy constructor and assignment operator have "LOGFONT& logfont" instead of using it as const?

Codejock 20.3.0
VS2022


-------------
Product: Xtreme ToolkitPro (MFC) version 16.3.1/17.1.0-20.3.0
Platform: Windows 10 (64bit)
Language: Visual C++ 2008/2013/2015/2019/2022



Replies:
Posted By: astoyan
Date Posted: 16 January 2023 at 10:40am
Thanks for bringing this to our attention. We've reviewed and improved implementation of CXTPLogFont so it follows C++ best practices now, it'll be released in the next update. In the meantime you can safely add 'const' to both the constructor and overloaded assignment operator declaration and definition if it is required for your use case.

Regards,
  Alexander



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net