Skip to content

Commit eade7a7

Browse files
author
Colin Robertson
authored
Markdig migration conversion corrections (#1558)
* CI Update * Correct markdig-migration conversion issues
1 parent 255aa51 commit eade7a7

File tree

310 files changed

+611
-1087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+611
-1087
lines changed

docs/atl-mfc-shared/basic-cstring-operations.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ For information about converting CString objects to other string types, see [How
7979

8080
To use a CString with `wcout` you must explicitly cast the object to a `const wchar_t*` as shown in the following example:
8181

82-
```
82+
```cpp
8383
CString cs("meow");
8484

85-
wcout <<(const wchar_t*) cs <<endl;
86-
85+
wcout << (const wchar_t*) cs << endl;
8786
```
8887
8988
Without the cast, `cs` is treated as a `void*` and `wcout` prints the address of the object. This behavior is caused by subtle interactions between template argument deduction and overload resolution which are in themselves correct and conformant with the C++ standard.

docs/atl-mfc-shared/reference/crect-class.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ Nonzero if the two rectangles have the same top, left, bottom, and right values;
407407
### Example
408408
409409
```cpp
410-
CRect rect1(35, 150, 10, 25);
411-
CRect rect2(35, 150, 10, 25);
412-
CRect rect3(98, 999, 6, 3);
410+
CRect rect1(35, 150, 10, 25);
411+
CRect rect2(35, 150, 10, 25);
412+
CRect rect3(98, 999, 6, 3);
413413
ASSERT(rect1.EqualRect(rect2));
414-
ASSERT(!rect1.EqualRect(rect3));
414+
ASSERT(!rect1.EqualRect(rect3));
415415
// works just fine against RECTs, as well
416416
417417
RECT test;
@@ -448,12 +448,8 @@ The resulting value can be negative.
448448
CRect rect(20, 30, 80, 70);
449449
int nHt = rect.Height();
450450

451-
```cpp
452-
CRect rect(20, 30, 80, 70);
453-
int nHt = rect.Height();
454-
455-
// nHt is now 40
456-
ASSERT(nHt == 40);
451+
// nHt is now 40
452+
ASSERT(nHt == 40);
457453
```
458454
459455
## <a name="inflaterect"></a> CRect::InflateRect
@@ -542,7 +538,6 @@ The intersection is the largest rectangle contained in both existing rectangles.
542538
CRect rectOne(125, 0, 150, 200);
543539
CRect rectTwo(0, 75, 350, 95);
544540
CRect rectInter;
545-
546541
```cpp
547542
CRect rectOne(125, 0, 150, 200);
548543
CRect rectTwo(0, 75, 350, 95);
@@ -581,7 +576,6 @@ A rectangle is empty if the width and/or height are 0 or negative. Differs from
581576
```cpp
582577
CRect rectNone(0, 0, 0, 0);
583578
CRect rectSome(35, 50, 135, 150);
584-
585579
```cpp
586580
CRect rectNone(0, 0, 0, 0);
587581
CRect rectSome(35, 50, 135, 150);
@@ -612,7 +606,6 @@ Differs from `IsRectEmpty`, which determines whether the rectangle is empty.
612606
```cpp
613607
CRect rectNone(0, 0, 0, 0);
614608
CRect rectSome(35, 50, 135, 150);
615-
616609
```cpp
617610
CRect rectNone(0, 0, 0, 0);
618611
CRect rectSome(35, 50, 135, 150);
@@ -642,7 +635,6 @@ The absolute x-coordinate for the upper-left corner of the rectangle.
642635
```cpp
643636
CRect rect(0, 0, 100, 100);
644637
rect.MoveToX(10);
645-
646638
```cpp
647639
CRect rect(0, 0, 100, 100);
648640
rect.MoveToX(10);
@@ -676,7 +668,6 @@ A `POINT` structure specifying the absolute upper-left corner of the rectangle.
676668
```cpp
677669
CRect rect(0, 0, 100, 100);
678670
rect.MoveToXY(10, 10);
679-
680671
```cpp
681672
CRect rect(0, 0, 100, 100);
682673
rect.MoveToXY(10, 10);

docs/atl/reference/atl-ole-db-consumer-wizard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ This wizard sets up an OLE DB consumer class with the data bindings necessary to
7474

7575
**Other:** In **Connect timeout**, specify the number of seconds of idle time allowed before a timeout occurs. In **Access permissions**, specify the access permissions on the data connection.
7676

77-
For more information about advanced initialization properties, refer to the documentation provided with each specific OLE DB provider.
77+
For more information about advanced initialization properties, refer to the documentation provided with each specific OLE DB provider.
7878

7979
- **All** tab
8080

8181
This tab displays a summary of the initialization properties for the data source and connection you have specified. You can edit these values.
8282

83-
Click **OK** to finish. The **Select Database Object** dialog box appears. From this dialog box, select the table, view, or stored procedure that the consumer will use.
83+
Click **OK** to finish. The **Select Database Object** dialog box appears. From this dialog box, select the table, view, or stored procedure that the consumer will use.
8484

8585
- **Class**
8686

docs/atl/reference/composite-control-global-functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ A pointer to a string to be passed to the control. Must be formatted in one of t
140140

141141
- A CLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}"
142142

143-
- A URL such as "http://www.microsoft.com"
143+
- A URL such as "<http://www.microsoft.com>"
144144

145145
- A reference to an Active document such as "file://\\\Documents\MyDoc.doc"
146146

@@ -192,7 +192,7 @@ A pointer to a string to be passed to the control. Must be formatted in one of t
192192

193193
- A CLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}"
194194

195-
- A URL such as "http://www.microsoft.com"
195+
- A URL such as "<http://www.microsoft.com>"
196196

197197
- A reference to an Active document such as "file://\\\Documents\MyDoc.doc"
198198

@@ -251,7 +251,7 @@ A pointer to a string to be passed to the control. Must be formatted in one of t
251251

252252
- A CLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}"
253253

254-
- A URL such as "http://www.microsoft.com"
254+
- A URL such as "<http://www.microsoft.com>"
255255

256256
- A reference to an Active document such as "file://\\\Documents\MyDoc.doc"
257257

@@ -305,7 +305,7 @@ A pointer to a string to be passed to the control. Must be formatted in one of t
305305

306306
- A CLSID such as "{8E27C92B-1264-101C-8A2F-040224009C02}"
307307

308-
- A URL such as "http://www.microsoft.com"
308+
- A URL such as "<http://www.microsoft.com>"
309309

310310
- A reference to an Active document such as "file://\\\Documents\MyDoc.doc"
311311

docs/atl/reference/options-atl-control-wizard.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ The kind of control you want to create.
1919

2020
- **Composite control**: An ActiveX control that can contain (similar to a dialog box) other ActiveX controls or Windows controls. A composite control includes the following:
2121

22-
- A template for the dialog box that implements the composite control.
22+
- A template for the dialog box that implements the composite control.
2323

24-
- A custom resource, REGISTRY, which automatically registers the composite control when invoked.
24+
- A custom resource, REGISTRY, which automatically registers the composite control when invoked.
2525

26-
- A C++ class that implements the composite control.
26+
- A C++ class that implements the composite control.
2727

28-
- A COM interface, exposed by the composite control.
28+
- A COM interface, exposed by the composite control.
2929

30-
- An HTML test page containing the composite control.
30+
- An HTML test page containing the composite control.
3131

32-
By default, this control sets [CComControlBase::m_bWindowOnly](../../atl/reference/ccomcontrolbase-class.md#m_bwindowonly) to true, to indicate that this is a windowed control. It implements a sink map. For more information, see [Support for DHTML Control](../../atl/atl-support-for-dhtml-controls.md).
32+
By default, this control sets [CComControlBase::m_bWindowOnly](../../atl/reference/ccomcontrolbase-class.md#m_bwindowonly) to true, to indicate that this is a windowed control. It implements a sink map. For more information, see [Support for DHTML Control](../../atl/atl-support-for-dhtml-controls.md).
3333

3434
- **DHTML control**: An ATL DHTML control specifies the user interface, using HTML. The DHTML UI class contains a COM map. By default, this control sets [CComControlBase::m_bWindowOnly](../../atl/reference/ccomcontrolbase-class.md#m_bwindowonly) to true, to indicate that this is a windowed control.
3535

docs/build/how-to-configure-visual-cpp-projects-to-target-64-bit-platforms.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ You can use the project configurations in the Visual Studio IDE to set up C++ ap
3434

3535
- When the **New Solution Platform** dialog box is open while you set up a project to target a 64-bit platform, in the **Copy settings from** drop-down list, select **Win32**. These project settings are automatically updated on the project level:
3636

37-
- The [/MACHINE](../build/reference/machine-specify-target-platform.md) linker option is set to **/MACHINE:X64**.
37+
- The [/MACHINE](../build/reference/machine-specify-target-platform.md) linker option is set to **/MACHINE:X64**.
3838

39-
- **Register Output** is turned OFF. For more information, see [Linker Property Pages](../ide/linker-property-pages.md).
39+
- **Register Output** is turned OFF. For more information, see [Linker Property Pages](../ide/linker-property-pages.md).
4040

41-
- **Target Environment** is set to **/env x64**. For more information, see [MIDL Property Pages: General](../ide/midl-property-pages-general.md).
41+
- **Target Environment** is set to **/env x64**. For more information, see [MIDL Property Pages: General](../ide/midl-property-pages-general.md).
4242

43-
- **Validate Parameters** is cleared and reset to the default value. For more information, see [MIDL Property Pages: Advanced](../ide/midl-property-pages-advanced.md).
43+
- **Validate Parameters** is cleared and reset to the default value. For more information, see [MIDL Property Pages: Advanced](../ide/midl-property-pages-advanced.md).
4444

45-
- If **Debug Information Format** was set to **/ZI** in the Win32 project configuration, then it is set to **/Zi** in the 64-bit project configuration. For more information, see [/Z7, /Zi, /ZI (Debug Information Format)](../build/reference/z7-zi-zi-debug-information-format.md).
45+
- If **Debug Information Format** was set to **/ZI** in the Win32 project configuration, then it is set to **/Zi** in the 64-bit project configuration. For more information, see [/Z7, /Zi, /ZI (Debug Information Format)](../build/reference/z7-zi-zi-debug-information-format.md).
4646

47-
> [!NOTE]
48-
> None of these project properties are changed if they are overridden on the file level.
47+
> [!NOTE]
48+
> None of these project properties are changed if they are overridden on the file level.
4949
5050
## See Also
5151

docs/c-runtime-library/file-constants.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.assetid: c8fa5548-9ac2-4217-801d-eb45e86f2fa4
1212
```
1313
1414
#include <fcntl.h>
15-
1615
```
1716

1817
## Remarks

docs/c-runtime-library/file-permission-constants.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.assetid: 593cad33-31d1-44d2-8941-8af7d210c88c
1212
```
1313
1414
#include <sys/stat.h>
15-
1615
```
1716

1817
## Remarks

docs/c-runtime-library/fopen-max-sys-open.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.assetid: 39cf5196-250a-459d-ae90-ce3d99f79039
1212
```
1313
1414
#include <stdio.h>
15-
1615
```
1716

1817
## Remarks

docs/c-runtime-library/fseek-lseek-constants.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.assetid: 9deeb13e-5aa3-4c33-80d8-721c80a4de9d
1212
```
1313
1414
#include <stdio.h>
15-
1615
```
1716

1817
## Remarks

0 commit comments

Comments
 (0)