From: Wolfgang Bangerth Date: Wed, 19 Jul 2017 18:58:21 +0000 (-0600) Subject: Simplify a small piece of code. X-Git-Tag: v9.0.0-rc1~1401^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4634%2Fhead;p=dealii.git Simplify a small piece of code. --- diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 637ea607a2..2c7d108bce 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -2760,8 +2760,7 @@ namespace internal decompressing_stream.push(boost::iostreams::gzip_decompressor()); decompressing_stream.push(boost::iostreams::back_inserter(decompressed_buffer)); - for (const auto p : buffer) - decompressing_stream << p; + decompressing_stream.write (&buffer[0], buffer.size()); } // then restore the object from the buffer