From b19aedd146d03dbbd4f835743494dc5f39976cb8 Mon Sep 17 00:00:00 2001
From: Carl Philipp Klemm <philipp@uvos.xyz>
Date: Mon, 13 Jun 2022 15:56:04 +0200
Subject: [PATCH] model: make getModelStr const

---
 eisgenerator/model.h | 2 +-
 model.cpp            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/eisgenerator/model.h b/eisgenerator/model.h
index 7f47ccd..c108d32 100644
--- a/eisgenerator/model.h
+++ b/eisgenerator/model.h
@@ -38,7 +38,7 @@ public:
 	bool executeParamSweep(const std::vector<Range>& componantRanges, const Range& omega, std::function<void(std::vector<DataPoint>&, const std::vector<fvalue>&)> dataCb);
 	std::vector<DataPoint> executeParamByIndex(const std::vector<Range>& componantRanges, const Range& omega, size_t index);
 	std::vector<DataPoint> executeParamByIndexC(const std::vector<Range>& componantRanges, const Range& omega, size_t index);
-	std::string getModelStr();
+	std::string getModelStr() const;
 	std::vector<Componant*> getFlatComponants(Componant *model = nullptr);
 	std::vector<fvalue> getFlatParameters(Componant *model = nullptr);
 	size_t getFlatParametersCount();
diff --git a/model.cpp b/model.cpp
index 033b41a..61fb6ba 100644
--- a/model.cpp
+++ b/model.cpp
@@ -439,7 +439,7 @@ size_t Model::getFlatParametersCount()
 	return count;
 }
 
-std::string Model::getModelStr()
+std::string Model::getModelStr() const
 {
 	std::string output;
 	output.reserve(_modelStr.size());
-- 
GitLab