aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-14 01:48:23 +0000
committerlloyd <[email protected]>2010-02-14 01:48:23 +0000
commit93e93981dcedddb7c157018ced4fadda82ea3605 (patch)
treeab57ddeb52f65e663230a589e1cbd91450e98e3a /src
parent7a318571d030c467d387c64cdf08cc99ca9974d6 (diff)
Minor tweak, save a line and more readable IMO
Diffstat (limited to 'src')
-rw-r--r--src/algo_factory/algo_factory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/algo_factory/algo_factory.cpp b/src/algo_factory/algo_factory.cpp
index 38c6387e5..ad8b1215f 100644
--- a/src/algo_factory/algo_factory.cpp
+++ b/src/algo_factory/algo_factory.cpp
@@ -70,8 +70,7 @@ const T* factory_prototype(const std::string& algo_spec,
{
if(provider == "" || engines[i]->provider_name() == provider)
{
- T* impl = engine_get_algo<T>(engines[i], scan_name, af);
- if(impl)
+ if(T* impl = engine_get_algo<T>(engines[i], scan_name, af))
cache->add(impl, algo_spec, engines[i]->provider_name());
}
}