Fixed compilation on gcc 2.95.

svn-id: r31447
This commit is contained in:
Johannes Schickel 2008-04-07 21:07:07 +00:00
parent 1aac71ae34
commit 48c9097672

View file

@ -175,7 +175,9 @@ public:
* This should just be used for debugging purposes.
*/
RefValue refCount() const { return _refCount ? *_refCount : 0; }
#if !((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))
private:
#endif
void decRef() {
if (_refCount) {
--(*_refCount);
@ -210,3 +212,4 @@ bool operator !=(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r)
#endif