From 032b337d6c29199720675021b9d11be68189deff Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 19 Jan 2017 13:26:43 +0100 Subject: [PATCH] char* -> const char* As std::string::c_str() returns it. --- python/dune/perftool/pdelab/localoperator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py index 039dc3a2..09a12e77 100644 --- a/python/dune/perftool/pdelab/localoperator.py +++ b/python/dune/perftool/pdelab/localoperator.py @@ -548,7 +548,7 @@ class TimerMethod(ClassMember): assert(knl is not None) content = ["template <typename Stream>", - "void dump_timers(Stream& {}, char* {}, bool {})".format(os, ident, reset), + "void dump_timers(Stream& {}, const char* {}, bool {})".format(os, ident, reset), "{"] dump_timers = [i for i in retrieve_cache_items(condition='dump_timers')] content.extend(map(lambda x: ' ' + x, dump_timers)) -- GitLab