From 950bda8fadcd13ee3bc9c33e758b6419a0bbea7a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 12 Apr 2018 23:03:47 +0200 Subject: [PATCH] Make protected field const (sonar). --- src/surf/plugins/host_dvfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/plugins/host_dvfs.cpp b/src/surf/plugins/host_dvfs.cpp index 9dac3372ee..3daf923bcb 100644 --- a/src/surf/plugins/host_dvfs.cpp +++ b/src/surf/plugins/host_dvfs.cpp @@ -28,7 +28,7 @@ namespace dvfs { class Governor { protected: - simgrid::s4u::Host* host; + simgrid::s4u::Host* const host; public: double sampling_rate; -- 2.20.1