Print Page | Close Window


Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
Printed Date: 19 May 2024 at 3:37am
Software Version: Web Wiz Forums 12.04 -

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

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

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.


Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 -
Copyright ©2001-2021 Web Wiz Ltd. -