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:
@@ -19,8 +19,7 @@ void DrapeApi::AddLine(std::string const & id, DrapeApiLineData const & data)
|
||||
auto const it = m_lines.find(id);
|
||||
if (it != m_lines.end())
|
||||
{
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
|
||||
make_unique_dp<DrapeApiRemoveMessage>(id),
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, make_unique_dp<DrapeApiRemoveMessage>(id),
|
||||
MessagePriority::Normal);
|
||||
}
|
||||
|
||||
@@ -28,8 +27,7 @@ void DrapeApi::AddLine(std::string const & id, DrapeApiLineData const & data)
|
||||
|
||||
TLines lines;
|
||||
lines.insert(std::make_pair(id, data));
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
|
||||
make_unique_dp<DrapeApiAddLinesMessage>(lines),
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, make_unique_dp<DrapeApiAddLinesMessage>(lines),
|
||||
MessagePriority::Normal);
|
||||
}
|
||||
|
||||
@@ -41,8 +39,7 @@ void DrapeApi::RemoveLine(std::string const & id)
|
||||
|
||||
auto & threadCommutator = lock.Get()->m_threadCommutator;
|
||||
m_lines.erase(id);
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
|
||||
make_unique_dp<DrapeApiRemoveMessage>(id),
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, make_unique_dp<DrapeApiRemoveMessage>(id),
|
||||
MessagePriority::Normal);
|
||||
}
|
||||
|
||||
@@ -71,7 +68,6 @@ void DrapeApi::Invalidate()
|
||||
MessagePriority::Normal);
|
||||
|
||||
threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread,
|
||||
make_unique_dp<DrapeApiAddLinesMessage>(m_lines),
|
||||
MessagePriority::Normal);
|
||||
make_unique_dp<DrapeApiAddLinesMessage>(m_lines), MessagePriority::Normal);
|
||||
}
|
||||
} // namespace df
|
||||
|
||||
Reference in New Issue
Block a user