diff --git a/source/views/view_information.cpp b/source/views/view_information.cpp index d65490763..1bdf657e4 100644 --- a/source/views/view_information.cpp +++ b/source/views/view_information.cpp @@ -190,13 +190,13 @@ namespace hex { ImGui::TextUnformatted("hex.view.information.distribution"_lang); ImPlot::SetNextPlotLimits(0, 256, 0, float(*std::max_element(this->m_valueCounts.begin(), this->m_valueCounts.end())) * 1.1F, ImGuiCond_Always); if (ImPlot::BeginPlot("##distribution", "Address", "Count", ImVec2(-1,0), ImPlotFlags_NoLegend | ImPlotFlags_NoMenus | ImPlotFlags_NoBoxSelect, ImPlotAxisFlags_Lock, ImPlotAxisFlags_Lock)) { - constexpr static auto x = []{ + static auto x = []{ std::array result{ 0 }; std::iota(result.begin(), result.end(), 0); return result; }(); - ImPlot::PlotBars("##bytes", x.data(), this->m_valueCounts.data(), x.size(), 0.67); + ImPlot::PlotBars("##bytes", x.data(), this->m_valueCounts.data(), x.size(), 0.67); ImPlot::EndPlot(); }