From b12205caf6d01a5062e6d73e4e8eac966c8ce454 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Fri, 2 Mar 2018 21:13:03 +0100 Subject: [PATCH] Minor optimization --- include/fc/smart_ref_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fc/smart_ref_impl.hpp b/include/fc/smart_ref_impl.hpp index 7c31cea..fd69694 100644 --- a/include/fc/smart_ref_impl.hpp +++ b/include/fc/smart_ref_impl.hpp @@ -89,7 +89,7 @@ namespace fc { template T& smart_ref::operator = ( smart_ref&& u ) { if( &u == this ) return *impl; - if( impl ) delete impl; + delete impl; impl = u.impl; u.impl = nullptr; return *impl;