[Scummvm-cvs-logs] SF.net SVN: scummvm:[33401] scummvm/trunk/common/ptr.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jul 29 11:23:54 CEST 2008
Revision: 33401
http://scummvm.svn.sourceforge.net/scummvm/?rev=33401&view=rev
Author: lordhoto
Date: 2008-07-29 09:23:54 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Formatting.
Modified Paths:
--------------
scummvm/trunk/common/ptr.h
Modified: scummvm/trunk/common/ptr.h
===================================================================
--- scummvm/trunk/common/ptr.h 2008-07-29 09:16:53 UTC (rev 33400)
+++ scummvm/trunk/common/ptr.h 2008-07-29 09:23:54 UTC (rev 33401)
@@ -121,7 +121,7 @@
~SharedPtr() { decRef(); }
- SharedPtr &operator =(const SharedPtr &r) {
+ SharedPtr &operator=(const SharedPtr &r) {
if (r._refCount)
++(*r._refCount);
decRef();
@@ -134,7 +134,7 @@
}
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 @@
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 @@
} // 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();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list