Commit 664d5988 authored by David Bommes's avatar David Bommes
Browse files

minor fixes (for cpp-check)

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@174 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent aaf240f2
......@@ -91,7 +91,7 @@ int main(void)
int nullity(dimc-rank);
// setup permutation matrix
SpMatrix Pm( n, n);
if( P.size() != 0)
if( !P.empty())
{
for( size_t i = 0; i < P.size(); ++i)
{
......
......@@ -263,7 +263,8 @@ public:
/** default constructor */
NProblemGmmIPOPT(NProblemGmmInterface* _problem, std::vector<NConstraintInterface*>& _constraints)
: problem_(_problem), constraints_(_constraints) {}
: problem_(_problem), constraints_(_constraints), nnz_jac_g_(0), nnz_h_lag_(0)
{}
/** default destructor */
virtual ~NProblemGmmIPOPT() {};
......
Markdown is supported
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