From e9f9f6eb27a1c202a852ed82344a47833ea48f54 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 19 Jul 2017 12:58:21 -0600 Subject: [PATCH] Simplify a small piece of code. --- source/dofs/dof_handler_policy.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5