From: loylick Date: Tue, 9 Aug 2016 15:18:45 +0000 (+0300) Subject: Added const modifier to format_version variable. X-Git-Tag: v8.5.0-rc1~790^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2933%2Fhead;p=dealii.git Added const modifier to format_version variable. --- diff --git a/include/deal.II/base/data_out_base.h b/include/deal.II/base/data_out_base.h index cc8d8020e6..0157e5e41f 100644 --- a/include/deal.II/base/data_out_base.h +++ b/include/deal.II/base/data_out_base.h @@ -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; }; /** diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 4f15f9e178..5f195ee6ff 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1501,7 +1501,7 @@ namespace DataOutBase template const unsigned int Patch::space_dim; - unsigned int Deal_II_IntermediateFlags::format_version = 3; + const unsigned int Deal_II_IntermediateFlags::format_version = 3;