clang-tidy modernize-use-default-member-init and modernize-use-emplace (#3190)

* run clang-tidy with modernize-use-default-member-init

* results from modernize-use-emplace

* one uniform initialization per line
otherwise SWIG is unhappy

Co-authored-by: Brian Kelley <fustigator@gmail.com>
This commit is contained in:
Greg Landrum
2020-05-28 09:07:58 +02:00
committed by GitHub
parent c346aa1492
commit 45b9aef28b
134 changed files with 620 additions and 739 deletions

View File

@@ -43,7 +43,7 @@ class Catalog {
typedef paramType paramType_t;
//------------------------------------
Catalog() : d_fpLength(0), dp_cParams(nullptr){};
Catalog() : dp_cParams(nullptr){};
//------------------------------------
virtual ~Catalog() { delete dp_cParams; }
@@ -106,7 +106,7 @@ class Catalog {
// in the catalog and does not correspond with the
// id of the entry in the catalog.
// this is more along the lines of bitId
unsigned int d_fpLength; //!< the length of our fingerprint
unsigned int d_fpLength{0}; //!< the length of our fingerprint
paramType *dp_cParams; //!< our params object
};