Skip to content

Commit 8db78fb

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/cpp-docs-pr (branch live)
2 parents aab5c29 + 1028bd0 commit 8db78fb

File tree

4 files changed

+65
-66
lines changed

4 files changed

+65
-66
lines changed

docs/error-messages/compiler-warnings/c5267.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "Compiler warning 3 C5267"
2+
title: "Compiler warning C5267"
33
description: Learn about compiler warning C5267
44
ms.date: 11/08/2023
55
f1_keywords: ["C5267"]
66
helpviewer_keywords: ["C5267"]
77
---
8-
# Compiler warning C5267
8+
# Compiler warning (level 4) C5267
99

1010
> definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor
1111
@@ -19,21 +19,21 @@ The relevant sections in the C++ standard are:
1919

2020
## Example
2121

22-
The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined:
22+
The following code shows warning C5267 when an implicitly generated special function is called but isn't explicitly defined. Both `/W4` and `/w45267` are required to produce this warning.
2323

2424
```cpp
2525
// C5267.cpp
2626
// compile using: /W4 /w45267
2727
struct CopyCtorOnly
2828
{
2929
CopyCtorOnly() = default;
30-
CopyCtorOnly(const CopyCtorOnly&) {} // C5267
30+
CopyCtorOnly(const CopyCtorOnly&) {} // C5267
3131
};
3232

3333
struct CopyAssignOpOnly
3434
{
3535
CopyAssignOpOnly() = default;
36-
CopyAssignOpOnly& operator=(const CopyAssignOpOnly&) // C5267
36+
CopyAssignOpOnly& operator=(const CopyAssignOpOnly&) // C5267
3737
{
3838
return *this;
3939
}

docs/error-messages/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4363,7 +4363,7 @@ items:
43634363
href: compiler-warnings/c5248.md
43644364
- name: Compiler warning (level 1, error, off) C5262
43654365
href: compiler-warnings/c5262.md
4366-
- name: Compiler warning C5267
4366+
- name: Compiler warning (level 4) C5267
43674367
href: compiler-warnings/c5267.md
43684368
- name: Compiler warning (level 1) C5301 and C5302
43694369
href: compiler-warnings/c5301-c5302.md

docs/mfc/reference/cd2dbrush-class.md

Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ title: "CD2DBrush Class"
44
ms.date: "11/04/2016"
55
f1_keywords: ["CD2DBrush", "AFXRENDERTARGET/CD2DBrush", "AFXRENDERTARGET/CD2DBrush::CD2DBrush", "AFXRENDERTARGET/CD2DBrush::Attach", "AFXRENDERTARGET/CD2DBrush::Destroy", "AFXRENDERTARGET/CD2DBrush::Detach", "AFXRENDERTARGET/CD2DBrush::Get", "AFXRENDERTARGET/CD2DBrush::GetOpacity", "AFXRENDERTARGET/CD2DBrush::GetTransform", "AFXRENDERTARGET/CD2DBrush::IsValid", "AFXRENDERTARGET/CD2DBrush::SetOpacity", "AFXRENDERTARGET/CD2DBrush::SetTransform", "AFXRENDERTARGET/CD2DBrush::m_pBrush", "AFXRENDERTARGET/CD2DBrush::m_pBrushProperties"]
66
helpviewer_keywords: ["CD2DBrush [MFC], CD2DBrush", "CD2DBrush [MFC], Attach", "CD2DBrush [MFC], Destroy", "CD2DBrush [MFC], Detach", "CD2DBrush [MFC], Get", "CD2DBrush [MFC], GetOpacity", "CD2DBrush [MFC], GetTransform", "CD2DBrush [MFC], IsValid", "CD2DBrush [MFC], SetOpacity", "CD2DBrush [MFC], SetTransform", "CD2DBrush [MFC], m_pBrush", "CD2DBrush [MFC], m_pBrushProperties"]
7-
ms.assetid: 0d2c0857-2261-48a8-8ee0-a88cbf08499a
87
---
9-
# CD2DBrush Class
8+
# `CD2DBrush` Class
109

11-
A wrapper for ID2D1Brush.
10+
A wrapper for `ID2D1Brush`.
1211

1312
## Syntax
1413

@@ -22,57 +21,57 @@ class CD2DBrush : public CD2DResource;
2221

2322
|Name|Description|
2423
|----------|-----------------|
25-
|[CD2DBrush::CD2DBrush](#cd2dbrush)|Constructs a CD2DBrush object.|
26-
|[CD2DBrush::~CD2DBrush](#_dtorcd2dbrush)|The destructor. Called when a D2D brush object is being destroyed.|
24+
|[`CD2DBrush::CD2DBrush`](#cd2dbrush)|Constructs a `CD2DBrush` object.|
25+
|[`CD2DBrush::~CD2DBrush`](#_dtorcd2dbrush)|The destructor. Called when a D2D brush object is being destroyed.|
2726

2827
### Public Methods
2928

3029
|Name|Description|
3130
|----------|-----------------|
32-
|[CD2DBrush::Attach](#attach)|Attaches existing resource interface to the object|
33-
|[CD2DBrush::Destroy](#destroy)|Destroys a CD2DBrush object. (Overrides [CD2DResource::Destroy](../../mfc/reference/cd2dresource-class.md#destroy).)|
34-
|[CD2DBrush::Detach](#detach)|Detaches resource interface from the object|
35-
|[CD2DBrush::Get](#get)|Returns ID2D1Brush interface|
36-
|[CD2DBrush::GetOpacity](#getopacity)|Gets the degree of opacity of this brush|
37-
|[CD2DBrush::GetTransform](#gettransform)|Gets the current transform of the render target|
38-
|[CD2DBrush::IsValid](#isvalid)|Checks resource validity (Overrides [CD2DResource::IsValid](../../mfc/reference/cd2dresource-class.md#isvalid).)|
39-
|[CD2DBrush::SetOpacity](#setopacity)|Sets the degree of opacity of this brush|
40-
|[CD2DBrush::SetTransform](#settransform)|Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
31+
|[`CD2DBrush::Attach`](#attach)|Attaches existing resource interface to the object|
32+
|[`CD2DBrush::Destroy`](#destroy)|Destroys a `CD2DBrush` object. (Overrides [`CD2DResource::Destroy`](../../mfc/reference/cd2dresource-class.md#destroy).)|
33+
|[`CD2DBrush::Detach`](#detach)|Detaches resource interface from the object|
34+
|[`CD2DBrush::Get`](#get)|Returns `ID2D1Brush` interface|
35+
|[`CD2DBrush::GetOpacity`](#getopacity)|Gets the degree of opacity of this brush|
36+
|[`CD2DBrush::GetTransform`](#gettransform)|Gets the current transform of the brush|
37+
|[`CD2DBrush::IsValid`](#isvalid)|Checks resource validity (Overrides [`CD2DResource::IsValid`](../../mfc/reference/cd2dresource-class.md#isvalid).)|
38+
|[`CD2DBrush::SetOpacity`](#setopacity)|Sets the degree of opacity of this brush|
39+
|[`CD2DBrush::SetTransform`](#settransform)|Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space|
4140

4241
### Public Operators
4342

4443
|Name|Description|
4544
|----------|-----------------|
46-
|[CD2DBrush::operator ID2D1Brush*](#operator_id2d1brush_star)|Returns ID2D1Brush interface|
45+
|[`CD2DBrush::operator ID2D1Brush*`](#operator_id2d1brush_star)|Returns `ID2D1Brush` interface|
4746

4847
### Protected Data Members
4948

5049
|Name|Description|
5150
|----------|-----------------|
52-
|[CD2DBrush::m_pBrush](#m_pbrush)|Stores a pointer to an ID2D1Brush object.|
53-
|[CD2DBrush::m_pBrushProperties](#m_pbrushproperties)|Brush properties.|
51+
|[`CD2DBrush::m_pBrush`](#m_pbrush)|Stores a pointer to an `ID2D1Brush` object.|
52+
|[`CD2DBrush::m_pBrushProperties`](#m_pbrushproperties)|Brush properties.|
5453

5554
## Inheritance Hierarchy
5655

57-
[CObject](../../mfc/reference/cobject-class.md)
56+
[`CObject`](../../mfc/reference/cobject-class.md)
5857

59-
[CD2DResource](../../mfc/reference/cd2dresource-class.md)
58+
[`CD2DResource`](../../mfc/reference/cd2dresource-class.md)
6059

6160
`CD2DBrush`
6261

6362
## Requirements
6463

65-
**Header:** afxrendertarget.h
64+
**Header:** `afxrendertarget.h`
6665

67-
## <a name="_dtorcd2dbrush"></a> CD2DBrush::~CD2DBrush
66+
## <a name="_dtorcd2dbrush"></a> `CD2DBrush::~CD2DBrush`
6867

69-
The destructor. Called when a D2D brush object is being destroyed.
68+
The destructor. Called when a `D2D` brush object is being destroyed.
7069

7170
```
7271
virtual ~CD2DBrush();
7372
```
7473

75-
## <a name="attach"></a> CD2DBrush::Attach
74+
## <a name="attach"></a> `CD2DBrush::Attach`
7675

7776
Attaches existing resource interface to the object.
7877

@@ -82,12 +81,12 @@ void Attach(ID2D1Brush* pResource);
8281
8382
### Parameters
8483
85-
*pResource*<br/>
86-
Existing resource interface. Cannot be NULL.
84+
*`pResource`*\
85+
Existing resource interface. Can't be `NULL`.
8786
88-
## <a name="cd2dbrush"></a> CD2DBrush::CD2DBrush
87+
## <a name="cd2dbrush"></a> `CD2DBrush::CD2DBrush`
8988
90-
Constructs a CD2DBrush object.
89+
Constructs a `CD2DBrush` object.
9190
9291
```
9392
CD2DBrush(
@@ -98,24 +97,24 @@ CD2DBrush(
9897
9998
### Parameters
10099
101-
*pParentTarget*<br/>
100+
*`pParentTarget`*\
102101
A pointer to the render target.
103102
104-
*pBrushProperties*<br/>
103+
*`pBrushProperties`*\
105104
A pointer to the opacity and transformation of a brush.
106105
107-
*bAutoDestroy*<br/>
108-
Indicates that the object will be destroyed by owner (pParentTarget).
106+
*`bAutoDestroy`*\
107+
Indicates that the owner (`pParentTarget`) destroys the object.
109108
110-
## <a name="destroy"></a> CD2DBrush::Destroy
109+
## <a name="destroy"></a> `CD2DBrush::Destroy`
111110
112-
Destroys a CD2DBrush object.
111+
Destroys a `CD2DBrush` object.
113112
114113
```
115114
virtual void Destroy();
116115
```
117116
118-
## <a name="detach"></a> CD2DBrush::Detach
117+
## <a name="detach"></a> `CD2DBrush::Detach`
119118
120119
Detaches resource interface from the object.
121120
@@ -127,19 +126,19 @@ ID2D1Brush* Detach();
127126
128127
Pointer to detached resource interface.
129128
130-
## <a name="get"></a> CD2DBrush::Get
129+
## <a name="get"></a> `CD2DBrush::Get`
131130
132-
Returns ID2D1Brush interface
131+
Returns `ID2D1Brush` interface
133132
134133
```
135134
ID2D1Brush* Get();
136135
```
137136
138137
### Return Value
139138
140-
Pointer to an ID2D1Brush interface or NULL if object is not initialized yet.
139+
Pointer to an `ID2D1Brush` interface or `NULL` if object isn't initialized yet.
141140
142-
## <a name="getopacity"></a> CD2DBrush::GetOpacity
141+
## <a name="getopacity"></a> `CD2DBrush::GetOpacity`
143142
144143
Gets the degree of opacity of this brush
145144
@@ -149,22 +148,22 @@ FLOAT GetOpacity() const;
149148
150149
### Return Value
151150
152-
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
151+
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
153152
154-
## <a name="gettransform"></a> CD2DBrush::GetTransform
153+
## <a name="gettransform"></a> `CD2DBrush::GetTransform`
155154
156-
Gets the current transform of the render target
155+
Gets the current transform of the brush
157156
158157
```cpp
159158
void GetTransform(D2D1_MATRIX_3X2_F* transform) const;
160159
```
161160

162161
### Parameters
163162

164-
*transform*<br/>
165-
When this returns, contains the current transform of the render target. This parameter is passed uninitialized.
163+
*`transform`*\
164+
When this returns, contains the current transform of the brush. This parameter is passed uninitialized.
166165

167-
## <a name="isvalid"></a> CD2DBrush::IsValid
166+
## <a name="isvalid"></a> `CD2DBrush::IsValid`
168167

169168
Checks resource validity
170169

@@ -174,37 +173,37 @@ virtual BOOL IsValid() const;
174173

175174
### Return Value
176175

177-
TRUE if resource is valid; otherwise FALSE.
176+
`TRUE` if resource is valid; otherwise `FALSE`.
178177

179-
## <a name="m_pbrush"></a> CD2DBrush::m_pBrush
178+
## <a name="m_pbrush"></a> `CD2DBrush::m_pBrush`
180179

181-
Stores a pointer to an ID2D1Brush object.
180+
Stores a pointer to an `ID2D1Brush` object.
182181

183182
```
184183
ID2D1Brush* m_pBrush;
185184
```
186185

187-
## <a name="m_pbrushproperties"></a> CD2DBrush::m_pBrushProperties
186+
## <a name="m_pbrushproperties"></a> `CD2DBrush::m_pBrushProperties`
188187

189188
Brush properties.
190189

191190
```
192191
CD2DBrushProperties* m_pBrushProperties;
193192
```
194193

195-
## <a name="operator_id2d1brush_star"></a> CD2DBrush::operator ID2D1Brush*
194+
## <a name="operator_id2d1brush_star"></a> `CD2DBrush::operator ID2D1Brush*`
196195

197-
Returns ID2D1Brush interface
196+
Returns `ID2D1Brush` interface
198197

199198
```
200199
operator ID2D1Brush*();
201200
```
202201

203202
### Return Value
204203

205-
Pointer to an ID2D1Brush interface or NULL if object is not initialized yet.
204+
Pointer to an `ID2D1Brush` interface or NULL if object isn't initialized yet.
206205

207-
## <a name="setopacity"></a> CD2DBrush::SetOpacity
206+
## <a name="setopacity"></a> `CD2DBrush::SetOpacity`
208207

209208
Sets the degree of opacity of this brush
210209

@@ -214,21 +213,21 @@ void SetOpacity(FLOAT opacity);
214213
215214
### Parameters
216215
217-
*opacity*<br/>
218-
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they are multiplied together.
216+
*`opacity`*\
217+
A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0 to 1 before they're multiplied together.
219218
220-
## <a name="settransform"></a> CD2DBrush::SetTransform
219+
## <a name="settransform"></a> `CD2DBrush::SetTransform`
221220
222-
Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
221+
Applies the specified transform to the brush, replacing the existing transformation. All subsequent drawing operations occur in the transformed space.
223222
224223
```cpp
225224
void SetTransform(const D2D1_MATRIX_3X2_F* transform);
226225
```
227226

228227
### Parameters
229228

230-
*transform*<br/>
231-
The transform to apply to the render target
229+
*`transform`*\
230+
The transform to apply to the brush
232231

233232
## See also
234233

docs/preprocessor/compiler-warnings-that-are-off-by-default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: Compiler warnings that are off by default"
33
title: "Compiler warnings that are off by default"
4-
ms.date: 02/28/2023
4+
ms.date: 11/15/2023
55
helpviewer_keywords: ["warnings, compiler", "cl.exe compiler, setting options"]
66
---
77
# Compiler warnings that are off by default
@@ -190,7 +190,7 @@ The following warnings are turned off by default in Visual Studio 2022 and later
190190
| [C5262](../error-messages/compiler-warnings/c5262.md) (level 1, error) | implicit fall-through occurs here; are you missing a `break` statement? Use `[[fallthrough]]` when a `break` statement is intentionally omitted between cases <sup>17.4</sup> |
191191
| C5263 (level 4) | calling '`std::move`' on a temporary object prevents copy elision <sup>17.4</sup> |
192192
| C5264 (level 4) | '*variable-name*': 'const' variable is not used <sup>17.4</sup> |
193-
| [C5267](../error-messages/compiler-warnings/c5267.md) | definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor <sup>17.7</sup> |
193+
| [C5267](../error-messages/compiler-warnings/c5267.md) (level 4) | definition of implicit copy constructor/assignment operator for '*type*' is deprecated because it has a user-provided assignment operator/copy constructor <sup>17.7</sup> |
194194

195195
<sup>14.1</sup> This warning is available starting in Visual Studio 2015 Update 1.\
196196
<sup>14.3</sup> This warning is available starting in Visual Studio 2015 Update 3.\

0 commit comments

Comments
 (0)