Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Stein committed Jun 1, 2024
1 parent 15e6be7 commit 8bd220b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/Model_Translink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ void Model_Translink::UpdateStockValue(Model_Stock::Data* stock_entry)
double avg_share_price = 0;
wxString earliest_date = wxDate::Today().FormatISODate();
Model_Checking::Data_Set checking_list;
for (const auto trans : trans_list)
for (const auto &trans : trans_list)
{
Model_Checking::Data* checking_entry = Model_Checking::instance().get(trans.CHECKINGACCOUNTID);
if (checking_entry && checking_entry->DELETEDTIME.IsEmpty() && Model_Checking::status(checking_entry->STATUS) != Model_Checking::VOID_) checking_list.push_back(*checking_entry);
}
std::stable_sort(checking_list.begin(), checking_list.end(), SorterByTRANSDATE());
for (const auto trans : checking_list)
for (const auto &trans : checking_list)
{
Model_Shareinfo::Data* share_entry = Model_Shareinfo::ShareEntry(trans.TRANSID);

Expand Down

0 comments on commit 8bd220b

Please sign in to comment.