From d5adb76746ec31e533dad17794be0db3fbbc41b8 Mon Sep 17 00:00:00 2001 From: Alex Harker Date: Sun, 17 Mar 2019 17:07:35 +0000 Subject: [PATCH] Const-correctness --- include/FluidSCWrapper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index e509bba..d9dc181 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -356,7 +356,7 @@ private: template struct AssignBuffer { - void operator()(typename BufferT::type &p, World *w) + void operator()(const typename BufferT::type &p, World *w) { if (auto b = static_cast(p.get())) b->assignToRT(w); } @@ -365,7 +365,7 @@ private: template struct CleanUpBuffer { - void operator()(typename BufferT::type &p) + void operator()(const typename BufferT::type &p) { if (auto b = static_cast(p.get())) b->cleanUp(); }