aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
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/utils
parentc691561f3198f481c13457433efbccc1c9fcd898 (diff)
Replace 0 and NULL pointer constants with nullptr. Also fix an old
style cast in secmem.h
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/dyn_load/dyn_load.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/dyn_load/dyn_load.cpp b/src/utils/dyn_load/dyn_load.cpp
index 06b8c5df3..51afb1afe 100644
--- a/src/utils/dyn_load/dyn_load.cpp
+++ b/src/utils/dyn_load/dyn_load.cpp
@@ -30,7 +30,7 @@ void raise_runtime_loader_exception(const std::string& lib_name,
Dynamically_Loaded_Library::Dynamically_Loaded_Library(
const std::string& library) :
- lib_name(library), lib(0)
+ lib_name(library), lib(nullptr)
{
#if defined(BOTAN_TARGET_OS_HAS_DLOPEN)
lib = ::dlopen(lib_name.c_str(), RTLD_LAZY);
@@ -60,7 +60,7 @@ Dynamically_Loaded_Library::~Dynamically_Loaded_Library()
void* Dynamically_Loaded_Library::resolve_symbol(const std::string& symbol)
{
- void* addr = 0;
+ void* addr = nullptr;
#if defined(BOTAN_TARGET_OS_HAS_DLOPEN)
addr = ::dlsym(lib, symbol.c_str());