mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "string_storage_base.hpp"
|
||||
|
||||
#include "coding/reader_streambuf.hpp"
|
||||
#include "coding/file_reader.hpp"
|
||||
#include "coding/file_writer.hpp"
|
||||
#include "coding/reader_streambuf.hpp"
|
||||
|
||||
#include "base/exception.hpp"
|
||||
#include "base/logging.hpp"
|
||||
@@ -103,13 +103,11 @@ void StringStorageBase::Update(std::map<std::string, std::string> const & values
|
||||
{
|
||||
std::lock_guard guard(m_mutex);
|
||||
|
||||
for (const auto & pair : values)
|
||||
{
|
||||
for (auto const & pair : values)
|
||||
if (pair.second.empty())
|
||||
m_values.erase(pair.first);
|
||||
else
|
||||
m_values[pair.first] = pair.second;
|
||||
}
|
||||
|
||||
Save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user