From 867fb85151f9a780dbe9c8a0458fa76d1ebc777d Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Tue, 28 Feb 2006 16:55:56 +0000 Subject: [PATCH] undo disabling checking, remove warnings, many thanks to Sam Miller git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@574 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/SmartPtr.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/loki/SmartPtr.h b/include/loki/SmartPtr.h index 14497a1..a29f974 100644 --- a/include/loki/SmartPtr.h +++ b/include/loki/SmartPtr.h @@ -712,17 +712,17 @@ namespace Loki RejectNull(const RejectNull&) {} - static void OnInit(P val) + static void OnInit(P) {} - static void OnDefault(P val) + static void OnDefault(P) {} void OnDereference(P val) - { OnInit(val); } + { if (!val) throw NullPointerException(); } void OnDereference(P val) const - { OnInit(val); } + { if (!val) throw NullPointerException(); } void Swap(RejectNull&) {} @@ -1362,6 +1362,9 @@ namespace std #endif // SMARTPTR_INC_ // $Log$ +// Revision 1.23 2006/02/28 16:55:56 syntheticpp +// undo disabling checking, remove warnings, many thanks to Sam Miller +// // Revision 1.22 2006/02/28 12:59:59 syntheticpp // fix wrong RejectNull implementation, thanks to Sam Miller //