From 056be8741e4346999c28554280cf29ea95a49ef6 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 10 Apr 2013 13:25:47 +0200 Subject: [PATCH] Fix missing assertion (ptr!=0) in RW_PTR operator-> --- zypp/base/PtrTypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zypp/base/PtrTypes.h b/zypp/base/PtrTypes.h index e80e285..a766137 100644 --- a/zypp/base/PtrTypes.h +++ b/zypp/base/PtrTypes.h @@ -297,7 +297,7 @@ namespace zypp { return *_dptr; }; const _D * operator->() const - { return _dptr.get(); } + { return _dptr.operator->(); } const _D * get() const { return _dptr.get(); } @@ -306,7 +306,7 @@ namespace zypp { return *_dptr; } _D * operator->() - { return _dptr.get(); } + { return _dptr.operator->(); } _D * get() { return _dptr.get(); } @@ -446,7 +446,7 @@ namespace zypp { return *_dptr; }; const _D * operator->() const - { return _dptr.get(); } + { return _dptr.operator->(); } const _D * get() const { return _dptr.get(); } @@ -455,7 +455,7 @@ namespace zypp { assertUnshared(); return *_dptr; } _D * operator->() - { assertUnshared(); return _dptr.get(); } + { assertUnshared(); return _dptr.operator->(); } _D * get() { assertUnshared(); return _dptr.get(); } -- 2.7.4