Skip to content
Snippets Groups Projects
Commit 680e59b1 authored by Timo Koch's avatar Timo Koch
Browse files

[fix] Return reference to static. Fix bug introduced in 3b62b6af

parent 65d6f6db
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!351Fix/h2no2 typo
...@@ -98,8 +98,9 @@ public: ...@@ -98,8 +98,9 @@ public:
*/ */
static const std::string& phaseName(int phaseIdx) static const std::string& phaseName(int phaseIdx)
{ {
static const std::string name[] = { std::string("w"), std::string("n") };
assert(0 <= phaseIdx && phaseIdx < numPhases); assert(0 <= phaseIdx && phaseIdx < numPhases);
return phaseIdx == wPhaseIdx ? "w" : "n"; return name[phaseIdx];
} }
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment