Skip to content

Commit

Permalink
static analysis clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Young <[email protected]>
  • Loading branch information
TactfulDeity committed Nov 13, 2024
1 parent 5faed79 commit 2854c6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions avogadro/core/basisset.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#define AVOGADRO_CORE_BASISSET_H

#include "avogadrocoreexport.h"
#include "core/variant.h"

#include <array>
#include <string>

namespace Avogadro::Core {
Expand Down Expand Up @@ -138,14 +140,14 @@ class AVOGADROCORE_EXPORT BasisSet
* For closed shell calculations alpha is doubly occupied and there are no
* beta electrons.
*/
unsigned int m_electrons[2];
std::array<unsigned int, 2> m_electrons = {};

/**
* The Molecule holds the atoms (and possibly bonds) read in from the output
* file. Most basis sets have orbitals around these atoms, but this is not
* necessarily the case.
*/
Molecule* m_molecule;
Molecule* m_molecule = nullptr;

/**
* The name of the basis set, this is usually a string identifier referencing
Expand Down
3 changes: 2 additions & 1 deletion avogadro/core/residue.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "avogadrocore.h"

#include <limits>
#include <map>
#include <string>

Expand Down Expand Up @@ -133,7 +134,7 @@ class AVOGADROCORE_EXPORT Residue

protected:
std::string m_residueName;
Index m_residueId;
Index m_residueId = std::numeric_limits<Index>::max();
char m_chainId;
AtomNameMap m_atomNameMap;
bool m_heterogen;
Expand Down

0 comments on commit 2854c6d

Please sign in to comment.