mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Modernization: use nullptr (#3143)
This commit is contained in:
@@ -33,16 +33,16 @@ typedef IntSet::const_iterator IntSetConstIter;
|
||||
*/
|
||||
class RDKIT_DATASTRUCTS_EXPORT SparseBitVect : public BitVect {
|
||||
public:
|
||||
SparseBitVect() : dp_bits(0), d_size(0){};
|
||||
SparseBitVect() : dp_bits(nullptr), d_size(0){};
|
||||
//! initialize with a particular size;
|
||||
explicit SparseBitVect(unsigned int size) : dp_bits(0), d_size(0) {
|
||||
explicit SparseBitVect(unsigned int size) : dp_bits(nullptr), d_size(0) {
|
||||
_initForSize(size);
|
||||
};
|
||||
|
||||
//! copy constructor
|
||||
SparseBitVect(const SparseBitVect &other) : BitVect(other) {
|
||||
d_size = 0;
|
||||
dp_bits = 0;
|
||||
dp_bits = nullptr;
|
||||
_initForSize(other.getNumBits());
|
||||
IntSet *bv = other.dp_bits;
|
||||
std::copy(bv->begin(), bv->end(), std::inserter(*dp_bits, dp_bits->end()));
|
||||
|
||||
Reference in New Issue
Block a user