mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Formatting.
svn-id: r33401
This commit is contained in:
parent
290f76a623
commit
a1f48b91ea
12
common/ptr.h
12
common/ptr.h
@ -121,7 +121,7 @@ public:
|
||||
|
||||
~SharedPtr() { decRef(); }
|
||||
|
||||
SharedPtr &operator =(const SharedPtr &r) {
|
||||
SharedPtr &operator=(const SharedPtr &r) {
|
||||
if (r._refCount)
|
||||
++(*r._refCount);
|
||||
decRef();
|
||||
@ -134,7 +134,7 @@ public:
|
||||
}
|
||||
|
||||
template<class T2>
|
||||
SharedPtr &operator =(const SharedPtr<T2> &r) {
|
||||
SharedPtr &operator=(const SharedPtr<T2> &r) {
|
||||
if (r._refCount)
|
||||
++(*r._refCount);
|
||||
decRef();
|
||||
@ -146,8 +146,8 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
ValueType &operator *() const { assert(_pointer); return *_pointer; }
|
||||
Pointer operator ->() const { assert(_pointer); return _pointer; }
|
||||
ValueType &operator*() const { assert(_pointer); return *_pointer; }
|
||||
Pointer operator->() const { assert(_pointer); return _pointer; }
|
||||
|
||||
/**
|
||||
* Returns the plain pointer value. Be sure you know what you
|
||||
@ -209,12 +209,12 @@ private:
|
||||
} // end of namespace Common
|
||||
|
||||
template<class T1, class T2>
|
||||
bool operator ==(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {
|
||||
bool operator==(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {
|
||||
return l.get() == r.get();
|
||||
}
|
||||
|
||||
template<class T1, class T2>
|
||||
bool operator !=(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {
|
||||
bool operator!=(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {
|
||||
return l.get() != r.get();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user