aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/lookup.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 20:44:34 +0000
committerlloyd <[email protected]>2012-05-18 20:44:34 +0000
commit8383b0b503c812e45f2780217b048a19a8946853 (patch)
tree939403bad80ee2b1e13b69c82adc316422a9c7d6 /src/libstate/lookup.h
parentc691561f3198f481c13457433efbccc1c9fcd898 (diff)
Replace 0 and NULL pointer constants with nullptr. Also fix an old
style cast in secmem.h
Diffstat (limited to 'src/libstate/lookup.h')
-rw-r--r--src/libstate/lookup.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstate/lookup.h b/src/libstate/lookup.h
index e10c195b8..96364e1d9 100644
--- a/src/libstate/lookup.h
+++ b/src/libstate/lookup.h
@@ -235,7 +235,7 @@ BOTAN_DLL bool have_algorithm(const std::string& algo_spec);
inline bool have_block_cipher(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.prototype_block_cipher(algo_spec) != 0);
+ return (af.prototype_block_cipher(algo_spec) != nullptr);
}
/**
@@ -248,7 +248,7 @@ inline bool have_block_cipher(const std::string& algo_spec)
inline bool have_stream_cipher(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.prototype_stream_cipher(algo_spec) != 0);
+ return (af.prototype_stream_cipher(algo_spec) != nullptr);
}
/**
@@ -261,7 +261,7 @@ inline bool have_stream_cipher(const std::string& algo_spec)
inline bool have_hash(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.prototype_hash_function(algo_spec) != 0);
+ return (af.prototype_hash_function(algo_spec) != nullptr);
}
/**
@@ -274,7 +274,7 @@ inline bool have_hash(const std::string& algo_spec)
inline bool have_mac(const std::string& algo_spec)
{
Algorithm_Factory& af = global_state().algorithm_factory();
- return (af.prototype_mac(algo_spec) != 0);
+ return (af.prototype_mac(algo_spec) != nullptr);
}
/*