]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added const modifier to format_version variable. 2933/head
authorloylick <KokomovAlex@gmail.com>
Tue, 9 Aug 2016 15:18:45 +0000 (18:18 +0300)
committerloylick <KokomovAlex@gmail.com>
Tue, 9 Aug 2016 15:18:45 +0000 (18:18 +0300)
include/deal.II/base/data_out_base.h
source/base/data_out_base.cc

index cc8d8020e6b44e4296e1410a574236cbbf09466d..0157e5e41f898b37b8fe48c9e2496d09acab6025 100644 (file)
@@ -1035,7 +1035,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 4f15f9e178bcbc3c92d24d630138a9f3493c00c2..5f195ee6ffd5903b9c7ed08a5438412c54d530e5 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.