mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-10 18:51:23 +00:00
Committed salty-horse's documentation patch.
svn-id: r31333
This commit is contained in:
parent
a9d256108d
commit
351851971b
@ -99,8 +99,8 @@ private:
|
|||||||
* assignment of a SharedPtr<B> object to a SharedPtr<A> object.
|
* assignment of a SharedPtr<B> object to a SharedPtr<A> object.
|
||||||
*
|
*
|
||||||
* There are also operators != and == to compare two SharedPtr objects
|
* There are also operators != and == to compare two SharedPtr objects
|
||||||
* with compatible pointers. Comparision between a SharedPtr object and
|
* with compatible pointers. Comparison between a SharedPtr object and
|
||||||
* a plain pointer is just possible via SharedPtr::get.
|
* a plain pointer is only possible via SharedPtr::get.
|
||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
class SharedPtr {
|
class SharedPtr {
|
||||||
@ -159,7 +159,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Implicit conversion operator to bool for convenience, to make
|
* Implicit conversion operator to bool for convenience, to make
|
||||||
* checks like "if (sharePtr) ..." possible.
|
* checks like "if (sharedPtr) ..." possible.
|
||||||
*/
|
*/
|
||||||
operator bool() const { return _pointer != 0; }
|
operator bool() const { return _pointer != 0; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user