Skip to content

Commit 87a08d9

Browse files
author
mtx48109
committed
format cleanup pr1
1 parent ca8692c commit 87a08d9

42 files changed

Lines changed: 91 additions & 91 deletions

Some content is hidden

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

docs/cpp/bstr-t-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.workload: ["cplusplus"]
1515
# _bstr_t Class
1616
**Microsoft Specific**
1717

18-
A `_bstr_t` object encapsulates the [BSTR data type](http://msdn.microsoft.com/en-us/1b2d7d2c-47af-4389-a6b6-b01b7e915228). The class manages resource allocation and deallocation through function calls to `SysAllocString` and `SysFreeString` and other `BSTR` APIs when appropriate. The `_bstr_t` class uses reference counting to avoid excessive overhead.
18+
A `_bstr_t` object encapsulates the [BSTR data type](http://msdn.microsoft.com/1b2d7d2c-47af-4389-a6b6-b01b7e915228). The class manages resource allocation and deallocation through function calls to `SysAllocString` and `SysFreeString` and other `BSTR` APIs when appropriate. The `_bstr_t` class uses reference counting to avoid excessive overhead.
1919

2020
### Construction
2121

docs/cpp/com-error-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ ms.workload: ["cplusplus"]
6969

7070
## See Also
7171
[Compiler COM Support Classes](../cpp/compiler-com-support-classes.md)
72-
[IErrorInfo Interface](http://msdn.microsoft.com/en-us/4dda6909-2d9a-4727-ae0c-b5f90dcfa447)
72+
[IErrorInfo Interface](http://msdn.microsoft.com/4dda6909-2d9a-4727-ae0c-b5f90dcfa447)

docs/cpp/copy-constructors-and-copy-assignment-operators-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.workload: ["cplusplus"]
1313
---
1414
# Copy Constructors and Copy Assignment Operators (C++)
1515
> [!NOTE]
16-
> Starting in C++11, two kinds of assignment are supported in the language: *copy assignment* and *move assignment*. In this article "assignment" means copy assignment unless explicitly stated otherwise. For information about move assignment, see [Move Constructors and Move Assignment Operators (C++)](http://msdn.microsoft.com/en-us/1442de5f-37a5-42a1-83a6-ec9cfe0414db).
16+
> Starting in C++11, two kinds of assignment are supported in the language: *copy assignment* and *move assignment*. In this article "assignment" means copy assignment unless explicitly stated otherwise. For information about move assignment, see [Move Constructors and Move Assignment Operators (C++)](http://msdn.microsoft.com/1442de5f-37a5-42a1-83a6-ec9cfe0414db).
1717
>
1818
> Both the assignment operation and the initialization operation cause objects to be copied.
1919

docs/cpp/cpp-type-system-modern-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void someFunction() {
156156
For more information about pointers in general, see [Pointers](../cpp/pointers-cpp.md).
157157

158158
## Windows data types
159-
In classic Win32 programming for C and C++, most functions use Windows-specific typedefs and #define macros (defined in `windef.h`) to specify the types of parameters and return values. These Windows data types are mostly just special names (aliases) given to C/C++ built-in types. For a complete list of these typedefs and preprocessor definitions, see [Windows Data Types](http://msdn.microsoft.com/en-us/4553cafc-450e-4493-a4d4-cb6e2f274d46). Some of these typedefs, such as HRESULT and LCID, are useful and descriptive. Others, such as INT, have no special meaning and are just aliases for fundamental C++ types. Other Windows data types have names that are retained from the days of C programming and 16-bit processors, and have no purpose or meaning on modern hardware or operating systems. There are also special data types associated with the Windows Runtime Library, listed as [Windows Runtime base data types](http://msdn.microsoft.com/en-us/b5735851-ec07-48c1-92b4-ca9f768096f6). In modern C++, the general guideline is to prefer the C++ fundamental types unless the Windows type communicates some additional meaning about how the value is to be interpreted.
159+
In classic Win32 programming for C and C++, most functions use Windows-specific typedefs and #define macros (defined in `windef.h`) to specify the types of parameters and return values. These Windows data types are mostly just special names (aliases) given to C/C++ built-in types. For a complete list of these typedefs and preprocessor definitions, see [Windows Data Types](http://msdn.microsoft.com/4553cafc-450e-4493-a4d4-cb6e2f274d46). Some of these typedefs, such as HRESULT and LCID, are useful and descriptive. Others, such as INT, have no special meaning and are just aliases for fundamental C++ types. Other Windows data types have names that are retained from the days of C programming and 16-bit processors, and have no purpose or meaning on modern hardware or operating systems. There are also special data types associated with the Windows Runtime Library, listed as [Windows Runtime base data types](http://msdn.microsoft.com/b5735851-ec07-48c1-92b4-ca9f768096f6). In modern C++, the general guideline is to prefer the C++ fundamental types unless the Windows type communicates some additional meaning about how the value is to be interpreted.
160160

161161
## More Information
162162
For more information about the C++ type system, see the following topics.

docs/cpp/how-to-create-and-use-ccomptr-and-ccomqiptr-instances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.author: "mblome"
1111
ms.workload: ["cplusplus"]
1212
---
1313
# How to: Create and Use CComPtr and CComQIPtr Instances
14-
In classic Windows programming, libraries are often implemented as COM objects (or more precisely, as COM servers). Many Windows operating system components are implemented as COM servers, and many contributors provide libraries in this form. For information about the basics of COM, see [Component Object Model (COM)](http://msdn.microsoft.com/en-us/3578ca42-a4b6-44b3-ad5b-aeb5fa61f3f4).
14+
In classic Windows programming, libraries are often implemented as COM objects (or more precisely, as COM servers). Many Windows operating system components are implemented as COM servers, and many contributors provide libraries in this form. For information about the basics of COM, see [Component Object Model (COM)](http://msdn.microsoft.com/3578ca42-a4b6-44b3-ad5b-aeb5fa61f3f4).
1515

1616
When you instantiate a Component Object Model (COM) object, store the interface pointer in a COM smart pointer, which performs the reference counting by using calls to `AddRef` and `Release` in the destructor. If you are using the Active Template Library (ATL) or the Microsoft Foundation Class Library (MFC), then use the `CComPtr` smart pointer. If you are not using ATL or MFC, then use `_com_ptr_t`. Because there is no COM equivalent to `std::unique_ptr`, use these smart pointers for both single-owner and multiple-owner scenarios. Both `CComPtr` and `ComQIPtr` support move operations that have rvalue references.
1717

docs/cpp/move-constructors-and-move-assignment-operators-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,4 @@ MemoryBlock(MemoryBlock&& other)
308308
309309
## See Also
310310
[Rvalue Reference Declarator: &&](../cpp/rvalue-reference-declarator-amp-amp.md)
311-
[\<utility> move](http://msdn.microsoft.com/en-us/abef7e85-9dd6-4724-85da-d7f7fe95dca9)
311+
[\<utility> move](http://msdn.microsoft.com/abef7e85-9dd6-4724-85da-d7f7fe95dca9)

docs/cpp/scope-visual-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Account *Checking = new class Account( Account );
9999
> [!NOTE]
100100
> The reuse of identifier names as shown in this example is considered poor programming style.
101101
102-
For more information about pointers, see [Derived Types](http://msdn.microsoft.com/en-us/aa14183c-02fe-4d81-95fe-beddb0c01c7c). For information about declaration and initialization of class objects, see [Classes, Structures, and Unions](../cpp/classes-and-structs-cpp.md). For information about using the **new** and **delete** free-store operators, see [new and delete operators](new-and-delete-operators.md).
102+
For more information about pointers, see [Derived Types](http://msdn.microsoft.com/aa14183c-02fe-4d81-95fe-beddb0c01c7c). For information about declaration and initialization of class objects, see [Classes, Structures, and Unions](../cpp/classes-and-structs-cpp.md). For information about using the **new** and **delete** free-store operators, see [new and delete operators](new-and-delete-operators.md).
103103
104104
## Hiding names with global scope
105105

docs/cpp/single-inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Sample of Directed Acyclic Graph
4747
In the diagram shown above, called a "directed acyclic graph" (or "DAG"), some of the classes are base classes for more than one derived class. However, the reverse is not true: there is only one direct base class for any given derived class. The graph in the figure depicts a "single inheritance" structure.
4848
4949
> [!NOTE]
50-
> Directed acyclic graphs are not unique to single inheritance. They are also used to depict multiple-inheritance graphs. This topic is covered in [Multiple Inheritance](http://msdn.microsoft.com/en-us/3b74185e-2beb-4e29-8684-441e51d2a2ca).
50+
> Directed acyclic graphs are not unique to single inheritance. They are also used to depict multiple-inheritance graphs. This topic is covered in [Multiple Inheritance](http://msdn.microsoft.com/3b74185e-2beb-4e29-8684-441e51d2a2ca).
5151
5252
In inheritance, the derived class contains the members of the base class plus any new members you add. As a result, a derived class can refer to members of the base class (unless those members are redefined in the derived class). The scope-resolution operator (`::`) can be used to refer to members of direct or indirect base classes when those members have been redefined in the derived class. Consider this example:
5353

docs/cpp/standard-conversions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.author: "mblome"
1212
ms.workload: ["cplusplus"]
1313
---
1414
# Standard Conversions
15-
The C++ language defines conversions between its fundamental types. It also defines conversions for pointer, reference, and pointer-to-member derived types. These conversions are called "standard conversions." (For more information about types, standard types, and derived types, see [Types](http://msdn.microsoft.com/en-us/6882ee83-ea32-4373-8d57-c3efbbc15af0).)
15+
The C++ language defines conversions between its fundamental types. It also defines conversions for pointer, reference, and pointer-to-member derived types. These conversions are called "standard conversions." (For more information about types, standard types, and derived types, see [Types](http://msdn.microsoft.com/6882ee83-ea32-4373-8d57-c3efbbc15af0).)
1616

1717
This section discusses the following standard conversions:
1818

@@ -201,7 +201,7 @@ Inheritance Graph for Illustration of Base-Class Accessibility
201201
||Protected|Yes|
202202
||Public|Yes|
203203

204-
The second case in which a pointer to a class can be converted to a pointer to a base class is when you use an explicit type conversion. (See [Expressions with Explicit Type Conversions](http://msdn.microsoft.com/en-us/060ad6b4-9592-4f3e-8509-a20ac84a85ae) for more information about explicit type conversions.)
204+
The second case in which a pointer to a class can be converted to a pointer to a base class is when you use an explicit type conversion. (See [Expressions with Explicit Type Conversions](http://msdn.microsoft.com/060ad6b4-9592-4f3e-8509-a20ac84a85ae) for more information about explicit type conversions.)
205205

206206
The result of such a conversion is a pointer to the "subobject," the portion of the object that is completely described by the base class.
207207

@@ -240,7 +240,7 @@ int main()
240240
A pointer to a function can be converted to type **void \***, if type **void \*** is large enough to hold that pointer.
241241

242242
### Pointer to void
243-
Pointers to type **void** can be converted to pointers to any other type, but only with an explicit type cast (unlike in C). (See [Expressions with Explicit Type Conversions](http://msdn.microsoft.com/en-us/060ad6b4-9592-4f3e-8509-a20ac84a85ae) for more information about type casts.) A pointer to any type can be converted implicitly to a pointer to type **void**.A pointer to an incomplete object of a type can be converted to a pointer to **void** (implicitly) and back (explicitly). The result of such a conversion is equal to the value of the original pointer. An object is considered incomplete if it is declared, but there is insufficient information available to determine its size or base class.
243+
Pointers to type **void** can be converted to pointers to any other type, but only with an explicit type cast (unlike in C). (See [Expressions with Explicit Type Conversions](http://msdn.microsoft.com/060ad6b4-9592-4f3e-8509-a20ac84a85ae) for more information about type casts.) A pointer to any type can be converted implicitly to a pointer to type **void**.A pointer to an incomplete object of a type can be converted to a pointer to **void** (implicitly) and back (explicitly). The result of such a conversion is equal to the value of the original pointer. An object is considered incomplete if it is declared, but there is insufficient information available to determine its size or base class.
244244

245245
A pointer to any object that is not **const** or **volatile** can be implicitly converted to a pointer of type **void \***.
246246

docs/cpp/statements-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ C++ statements are the program elements that control how and in what order objec
3232

3333
- [Jump statements](../cpp/jump-statements-cpp.md). These statements either transfer control immediately to another location in the function or return control from the function.
3434

35-
- [Declaration statements](http://msdn.microsoft.com/en-us/14538558-356f-450e-9e1e-3cd62ba952b9). Declarations introduce a name into a program. ([Declarations and Definitions](declarations-and-definitions-cpp.md) provides more detailed information about declarations.)
35+
- [Declaration statements](http://msdn.microsoft.com/14538558-356f-450e-9e1e-3cd62ba952b9). Declarations introduce a name into a program. ([Declarations and Definitions](declarations-and-definitions-cpp.md) provides more detailed information about declarations.)
3636

3737
For information on exception handling statements see [Exception Handling](../cpp/exception-handling-in-visual-cpp.md).
3838

0 commit comments

Comments
 (0)