From abd64fced4a2fbef378bd45afa3b211ba9a677b8 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Mon, 3 Oct 2011 04:39:17 +0000 Subject: [PATCH] Changed order of actions to remove warning. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1129 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/Singleton.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/loki/Singleton.h b/include/loki/Singleton.h index 89bb52d..717dc8c 100644 --- a/include/loki/Singleton.h +++ b/include/loki/Singleton.h @@ -829,8 +829,8 @@ namespace Loki { if (destroyed_) { - LifetimePolicy::OnDeadReference(); destroyed_ = false; + LifetimePolicy::OnDeadReference(); } pInstance_ = CreationPolicy::Create(); LifetimePolicy::ScheduleDestruction(pInstance_,