Another clang-format run, changed how parameters are binned

This commit is contained in:
Pedro Pinto committed 2020-12-30 17:30:10 -05:00
1 parent 8f21a77150
commit de063e51f0
452 files changed
+5506 -2380

No files matched your search

@@ -83,10 +83,12 @@ PositionServiceServer::PositionServiceServer(
bts::api::ServiceContext &context, bts::md::MDClient &md_client)
: PositionServiceBase(context),
me(new PImpl(
context, make_position_data_stateful_publisher(),
context,
make_position_data_stateful_publisher(),
make_pnl_data_stateful_publisher(),
make_pnl_account_data_stateful_publisher(),
make_manual_fills_stateful_publisher(), md_client)) {
make_manual_fills_stateful_publisher(),
md_client)) {
_delete_presod_local_on_start();
// incremental fill update
me->order_service.subscribe_fills() |
@@ -178,8 +180,10 @@ void PositionServiceServer::_set_admin_data(
template <class T, class TKey>
void _diff(
const std::map<TKey, T const *> &new_state,
const std::map<TKey, T const *> &prev_state, std::vector<T const *> &added,
std::vector<T const *> &updated, std::vector<T const *> &deleted) {
const std::map<TKey, T const *> &prev_state,
std::vector<T const *> &added,
std::vector<T const *> &updated,
std::vector<T const *> &deleted) {
for (const auto &p : new_state) {
if (prev_state.find(p.first) == prev_state.end())
added.push_back(p.second);