aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/ber_dec.cpp
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/asn1/ber_dec.cpp
parentc691561f3198f481c13457433efbccc1c9fcd898 (diff)
Replace 0 and NULL pointer constants with nullptr. Also fix an old
style cast in secmem.h
Diffstat (limited to 'src/asn1/ber_dec.cpp')
-rw-r--r--src/asn1/ber_dec.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/asn1/ber_dec.cpp b/src/asn1/ber_dec.cpp
index ea0a380d4..dbd59988b 100644
--- a/src/asn1/ber_dec.cpp
+++ b/src/asn1/ber_dec.cpp
@@ -276,7 +276,7 @@ BER_Decoder::BER_Decoder(DataSource& src)
source = &src;
owns = false;
pushed.type_tag = pushed.class_tag = NO_OBJECT;
- parent = 0;
+ parent = nullptr;
}
/*
@@ -287,7 +287,7 @@ BER_Decoder::BER_Decoder(const byte data[], size_t length)
source = new DataSource_Memory(data, length);
owns = true;
pushed.type_tag = pushed.class_tag = NO_OBJECT;
- parent = 0;
+ parent = nullptr;
}
/*
@@ -298,7 +298,7 @@ BER_Decoder::BER_Decoder(const secure_vector<byte>& data)
source = new DataSource_Memory(data);
owns = true;
pushed.type_tag = pushed.class_tag = NO_OBJECT;
- parent = 0;
+ parent = nullptr;
}
/*
@@ -309,7 +309,7 @@ BER_Decoder::BER_Decoder(const std::vector<byte>& data)
source = new DataSource_Memory(&data[0], data.size());
owns = true;
pushed.type_tag = pushed.class_tag = NO_OBJECT;
- parent = 0;
+ parent = nullptr;
}
/*
@@ -335,7 +335,7 @@ BER_Decoder::~BER_Decoder()
{
if(owns)
delete source;
- source = 0;
+ source = nullptr;
}
/*