From f1d81143b7d43a79f12800d8a4079b51271a1a5a Mon Sep 17 00:00:00 2001 From: loylick Date: Tue, 9 Aug 2016 18:18:45 +0300 Subject: [PATCH] Added const modifier to format_version variable. --- include/deal.II/base/data_out_base.h | 2 +- source/base/data_out_base.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/data_out_base.h b/include/deal.II/base/data_out_base.h index b8b47a160c..0727125ee7 100644 --- a/include/deal.II/base/data_out_base.h +++ b/include/deal.II/base/data_out_base.h @@ -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; }; /** diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 0d46dc9ff5..000af86104 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; -- 2.39.5