Skip to content

Commit

Permalink
Issue #520: core: replace RedBlackMap and RedBlackSet implementation …
Browse files Browse the repository at this point in the history
…with standard containers

Fix clang_format
  • Loading branch information
Alexander Stepaniuk authored and Alexander Stepaniuk committed Aug 2, 2022
1 parent 3ff4596 commit 838cf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bingo/oracle/src/oracle/bingo_oracle_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, double> {elem, mass});
relative_atomic_mass_map.insert(std::pair<int, double>{elem, mass});
buffer += pos;

while (*buffer == ' ')
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/indigo-core/molecule/molecule_mass.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include "base_cpp/red_black.h"
#include "molecule/molecule_mass_options.h"

#include <set>
#include <map>
#include <set>

namespace indigo
{
Expand Down

0 comments on commit 838cf2e

Please sign in to comment.