You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac75b69
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/dotnet/com-ptr-class.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ A COM interface pointer.
195
195
196
196
### Remarks
197
197
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.
199
199
200
200
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.
201
201
@@ -1151,7 +1151,7 @@ This operator allows you to call methods of the owned COM object. It returns a t
1151
1151
1152
1152
### Example
1153
1153
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.
1155
1155
1156
1156
```cpp
1157
1157
// comptr_op_member.cpp
@@ -1356,7 +1356,7 @@ operator bool();
1356
1356
1357
1357
The owned COM object is valid if it's not `nullptr`.
1358
1358
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.
0 commit comments