mirror of
https://github.com/gwm17/Specter.git
synced 2024-11-22 10:18:50 -05:00
Bugfix for Ubuntu22.04 in SpectrumManager and warning in SPSInputLayer.h
This commit is contained in:
parent
cabdcf6ed0
commit
7a02016774
|
@ -65,7 +65,7 @@ namespace Specter {
|
|||
ImGui::Text("-------Current Settings-------");
|
||||
ImGui::Text("Reaction Equation: ");
|
||||
ImGui::SameLine();
|
||||
ImGui::Text(m_rxnEqn.c_str());
|
||||
ImGui::Text("%s", m_rxnEqn.c_str());
|
||||
ImGui::Text("X1 Weight: %f", x1_weight.GetValue());
|
||||
ImGui::Text("X2 Weight: %f", x2_weight.GetValue());
|
||||
}
|
||||
|
|
|
@ -259,7 +259,7 @@ namespace Specter {
|
|||
uint64_t scalerVal;
|
||||
for (auto& graph : m_graphMap)
|
||||
{
|
||||
auto& scalerIter = m_scalerMap.find(graph.second->GetScaler());
|
||||
auto scalerIter = m_scalerMap.find(graph.second->GetScaler());
|
||||
if (scalerIter != m_scalerMap.end())
|
||||
{
|
||||
scalerVal = *(scalerIter->second);
|
||||
|
@ -278,7 +278,7 @@ namespace Specter {
|
|||
void SpectrumManager::ClearGraph(const std::string& name)
|
||||
{
|
||||
std::scoped_lock<std::mutex> guard(m_managerMutex);
|
||||
auto& iter = m_graphMap.find(name);
|
||||
auto iter = m_graphMap.find(name);
|
||||
if (iter != m_graphMap.end())
|
||||
iter->second->Clear();
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ namespace Specter {
|
|||
void SpectrumManager::DrawGraph(const std::string& name)
|
||||
{
|
||||
std::scoped_lock<std::mutex> guard(m_managerMutex);
|
||||
auto& iter = m_graphMap.find(name);
|
||||
auto iter = m_graphMap.find(name);
|
||||
if (iter != m_graphMap.end())
|
||||
iter->second->Draw();
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ namespace Specter {
|
|||
const GraphArgs& SpectrumManager::GetGraphArgs(const std::string& name)
|
||||
{
|
||||
std::scoped_lock<std::mutex> guard(m_managerMutex);
|
||||
auto& iter = m_graphMap.find(name);
|
||||
auto iter = m_graphMap.find(name);
|
||||
if (iter != m_graphMap.end())
|
||||
return iter->second->GetArgs();
|
||||
return m_nullGraphResult;
|
||||
|
|
Loading…
Reference in New Issue
Block a user