Commit 71c89535 authored by Ian Bell's avatar Ian Bell
Browse files

SECURITY. KLOCWORK. Some passive changes suggested by Klockwork, maintly...

SECURITY. KLOCWORK. Some passive changes suggested by Klockwork, maintly declaration only of private copy constructors and assignment operators to inhib it bitwise copying of classes which deallocatwe on desctruction. No achanges to code image anticipated with this CL.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 11443]
parent 7d039ecd
......@@ -89,6 +89,11 @@ protected:
private:
class Impl;
Impl* impl_;
// inhibit copy
IPOPTSolver(const IPOPTSolver &);
IPOPTSolver & operator=(const IPOPTSolver &);
};
......
......@@ -191,7 +191,7 @@ store_result ( const double* _x )
bool
LeastSquaresProblem::
constant_hessian()
constant_hessian() const
{
for(unsigned int i=0; i<terms_.size(); ++i)
{
......
......@@ -61,7 +61,7 @@ public:
virtual void store_result ( const double* _x );
// advanced properties
virtual bool constant_hessian();
virtual bool constant_hessian() const;
private:
......
......@@ -75,7 +75,7 @@ public:
Eigen::VectorXd& x() { return x_;}
// advanced properties
virtual bool constant_hessian() { return true; }
virtual bool constant_hessian() const { return true; }
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment