Skip to content

Commit

Permalink
Get rid of warning #858: type qualifier on return type is meaningless
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanoff committed Oct 22, 2019
1 parent 5eb4174 commit b99b8cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/mps_nevpt/perturb.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ namespace SpinAdapted{
public:
TwoPerturbType type_;
bool initialized_ = false;
const bool initialized() const {return initialized_; }
const TwoPerturbType type() const { return type_; }
bool initialized() const {return initialized_; }
TwoPerturbType type() const { return type_; }
vector<int> orbs;
perturber(){;}
static vector<double> ZeroEnergy;
Expand Down Expand Up @@ -97,7 +97,7 @@ namespace SpinAdapted{
//const Wavefunction& w0;
int w0;
//virtual const int wavenumber(){ return static_cast<int>(type_)*10000;}
virtual const int wavenumber() const =0;
virtual int wavenumber() const =0;
//const PerturbArray& v;
//const ActivePerturbArray& ActiveV;
std::vector<SpinQuantum> braquanta;
Expand Down Expand Up @@ -143,7 +143,7 @@ namespace SpinAdapted{
init(std::vector<int>(1,orb));
}

const int wavenumber() const { return static_cast<int>(type_)*10000+orbs[0]+100000;}
int wavenumber() const { return static_cast<int>(type_)*10000+orbs[0]+100000;}

};

Expand Down Expand Up @@ -183,7 +183,7 @@ namespace SpinAdapted{
init(std::vector<int>(1,orb));
}

const int wavenumber() const { return static_cast<int>(type_)*10000+orbs[0]+100000;}
int wavenumber() const { return static_cast<int>(type_)*10000+orbs[0]+100000;}

};

Expand Down

0 comments on commit b99b8cc

Please sign in to comment.