Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPLogFont
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPLogFont

 Post Reply Post Reply
Author
Message
gpm1 View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2006
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote gpm1 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPLogFont
    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
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 304
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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

This page was generated in 0.125 seconds.