]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a small piece of code. 4634/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 19 Jul 2017 18:58:21 +0000 (12:58 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 19 Jul 2017 20:44:45 +0000 (14:44 -0600)
source/dofs/dof_handler_policy.cc

index 637ea607a2d0d561acbf1f6f4013db285a79e933..2c7d108bce7f6bebf95006a7cb426f0f4dcf7799 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.