]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added const modifier to format_version variable. 3043/head
authorloylick <KokomovAlex@gmail.com>
Tue, 9 Aug 2016 15:18:45 +0000 (18:18 +0300)
committerMatthias Maier <tamiko@43-1.org>
Wed, 31 Aug 2016 22:40:18 +0000 (17:40 -0500)
include/deal.II/base/data_out_base.h
source/base/data_out_base.cc

index b8b47a160c9df20308908ba6f45e17b0ec5f07fc..0727125ee7c545a65878b735470cc0c004f29c64 100644 (file)
@@ -994,7 +994,7 @@ namespace DataOutBase
      * this number is used only to verify that the format we are writing is
      * what the current readers and writers understand.
      */
-    static unsigned int format_version;
+    static const unsigned int format_version;
   };
 
   /**
index 0d46dc9ff5123af6b53decdeed67ef8354d2a435..000af8610445b28e71c4e3007677cb1eb1bb38b5 100644 (file)
@@ -1501,7 +1501,7 @@ namespace DataOutBase
   template <int dim, int spacedim>
   const unsigned int Patch<dim,spacedim>::space_dim;
 
-  unsigned int Deal_II_IntermediateFlags::format_version = 3;
+  const unsigned int Deal_II_IntermediateFlags::format_version = 3;
 
 
 

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.