Skip to content

Commit ac75b69

Browse files
committed
Consolicate articles.
1 parent edcef7a commit ac75b69

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/dotnet/com-ptr-class.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ A COM interface pointer.
195195

196196
### Remarks
197197

198-
The no-argument constructor assigns `nullptr` to the underlying object handle. Future calls to the `com::ptr` will validate the internal object and silently fail until an object is actually created or attached.
198+
The no-argument constructor assigns `nullptr` to the underlying object handle. Future calls to the `com::ptr` will validate the internal object and silently fail until an object is created or attached.
199199

200200
The one-argument constructor adds a reference to the COM object but doesn't release the caller's reference, so the caller must call `Release` on the COM object to truly give up control. When the `com::ptr`'s destructor is called it will automatically release its references on the COM object.
201201

@@ -1151,7 +1151,7 @@ This operator allows you to call methods of the owned COM object. It returns a t
11511151

11521152
### Example
11531153

1154-
This example implements a CLR class that uses a `com::ptr` to wrap its private member `IXMLDOMDocument` object. The `WriteDocument` functions uses `operator->` to call the `get_firstChild` member of the document object.
1154+
This example implements a CLR class that uses a `com::ptr` to wrap its private member `IXMLDOMDocument` object. The `WriteDocument` function uses `operator->` to call the `get_firstChild` member of the document object.
11551155

11561156
```cpp
11571157
// comptr_op_member.cpp
@@ -1356,7 +1356,7 @@ operator bool();
13561356

13571357
The owned COM object is valid if it's not `nullptr`.
13581358

1359-
This operator actually converts to `_detail_class::_safe_bool` which is safer than `bool` because it can't be converted to an integral type.
1359+
This operator converts to `_detail_class::_safe_bool` which is safer than `bool` because it can't be converted to an integral type.
13601360

13611361
### Example
13621362

0 commit comments

Comments
 (0)