Skip to content

Fix CRect::CRect description#2497

Merged
colin-home merged 1 commit into
MicrosoftDocs:masterfrom
matrohin:patch-1
Sep 28, 2020
Merged

Fix CRect::CRect description#2497
colin-home merged 1 commit into
MicrosoftDocs:masterfrom
matrohin:patch-1

Conversation

@matrohin
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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