Skip to content

Fix CRect::CRect description #2497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2020
Merged

Conversation

matrohin
Copy link
Contributor

According to the source code (see atltypes.h file) it actually initializes all members with = 0.

I checked that CPoint and CSize documentation is correct.
Please correct me if I'm wrong, here is the source code of CRect::CRect on my machine:

// CRect
inline CRect::CRect() throw()
{
	left = 0;
	top = 0;
	right = 0;
	bottom = 0;
}

According to the source code (see atltypes.h file) it actually initializes all members with `= 0`.
@PRMerger19
Copy link
Contributor

@matrohin : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

@colin-home colin-home left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matrohin
Thanks for the update. It's possible the old documentation was true when it was written, but it's been incorrect for a long time.

@colin-home colin-home merged commit 82f1ac8 into MicrosoftDocs:master Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants