From: bangerth Date: Wed, 10 Oct 2012 20:59:51 +0000 (+0000) Subject: Avoid a warning about a potentially uninitialized variable. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55f922af4f803f5aa7e7636f63cafcc9e3c547a1;p=dealii-svn.git Avoid a warning about a potentially uninitialized variable. git-svn-id: https://svn.dealii.org/trunk@27059 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/trilinos_block_vector.h b/deal.II/include/deal.II/lac/trilinos_block_vector.h index a5c22e2d03..49be01fe9a 100644 --- a/deal.II/include/deal.II/lac/trilinos_block_vector.h +++ b/deal.II/include/deal.II/lac/trilinos_block_vector.h @@ -196,7 +196,7 @@ namespace TrilinosWrappers * information. */ void compress (const Epetra_CombineMode last_action); - + /** * so it is not hidden */ @@ -525,15 +525,14 @@ namespace TrilinosWrappers { ::dealii::VectorOperation::values last_action_; if (last_action == Add) - last_action_ = ::dealii::VectorOperation::add; + this->compress(::dealii::VectorOperation::add); else if (last_action == Insert) - last_action_ = ::dealii::VectorOperation::insert; + this->compress(::dealii::VectorOperation::insert); else AssertThrow(false, ExcNotImplemented()); - - this->compress(last_action_); } + inline void BlockVector::swap (BlockVector &v)