From 838cf2e74123cd4fe073e38601285cd66017f47f Mon Sep 17 00:00:00 2001 From: Alexander Stepaniuk Date: Tue, 2 Aug 2022 14:37:53 +0300 Subject: [PATCH] Issue #520: core: replace RedBlackMap and RedBlackSet implementation with standard containers Fix clang_format --- bingo/oracle/src/oracle/bingo_oracle_context.cpp | 4 ++-- core/indigo-core/molecule/molecule_mass.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bingo/oracle/src/oracle/bingo_oracle_context.cpp b/bingo/oracle/src/oracle/bingo_oracle_context.cpp index cd9c4d4e6c..b71f354fc0 100644 --- a/bingo/oracle/src/oracle/bingo_oracle_context.cpp +++ b/bingo/oracle/src/oracle/bingo_oracle_context.cpp @@ -497,7 +497,7 @@ void BingoOracleContext::atomicMassLoad(OracleEnv& env) if (relative_atomic_mass_map.find(elem) != relative_atomic_mass_map.end()) throw Error("element '%s' duplication in atomic mass list", element_str.ptr()); - relative_atomic_mass_map.insert(std::pair {elem, mass}); + relative_atomic_mass_map.insert(std::pair{elem, mass}); buffer += pos; while (*buffer == ' ') @@ -510,7 +510,7 @@ void BingoOracleContext::atomicMassLoad(OracleEnv& env) if (relative_atomic_mass_map.size() != 0) { env.dbgPrintfTS("Relative atomic mass read: "); - for (const auto& pair :relative_atomic_mass_map) + for (const auto& pair : relative_atomic_mass_map) { int elem = pair.first; float mass = pair.second; diff --git a/core/indigo-core/molecule/molecule_mass.h b/core/indigo-core/molecule/molecule_mass.h index a8a6da5acf..7b55eae1d0 100644 --- a/core/indigo-core/molecule/molecule_mass.h +++ b/core/indigo-core/molecule/molecule_mass.h @@ -21,8 +21,8 @@ #include "base_cpp/red_black.h" #include "molecule/molecule_mass_options.h" -#include #include +#include namespace indigo {