From 851f8d1535be56679f7779c3382184608fe11c7b Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Jul 2011 23:53:30 +0000 Subject: Use nullptr --- src/algo_factory/algo_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algo_factory') diff --git a/src/algo_factory/algo_cache.h b/src/algo_factory/algo_cache.h index 56329024a..3a792c994 100644 --- a/src/algo_factory/algo_cache.h +++ b/src/algo_factory/algo_cache.h @@ -138,7 +138,7 @@ const T* Algorithm_Cache::get(const std::string& algo_spec, if(prov_name == pref_provider) return i->second; - if(prototype == 0 || prov_weight > prototype_prov_weight) + if(prototype == nullptr || prov_weight > prototype_prov_weight) { prototype = i->second; prototype_provider = i->first; -- cgit v1.2.3