Skip to content

Commit

Permalink
More cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gerstrong committed Dec 17, 2023
1 parent 8450c33 commit a721600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/filtertransdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ void mmFilterTransactionsDialog::OnChoice(wxCommandEvent& event)
}
}

void mmFilterTransactionsDialog::OnMenuSelected(wxCommandEvent& event)
void mmFilterTransactionsDialog::OnMenuSelected(wxCommandEvent&)
{
m_color_value = colorButton_->GetColorId();
if (!m_color_value)
Expand Down
2 changes: 1 addition & 1 deletion src/filtertransdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class mmFilterTransactionsDialog: public wxDialog
void OnShowColumnsButton(wxCommandEvent& /*event*/);
void OnMoreFields(wxCommandEvent& event);
void OnChoice(wxCommandEvent& event);
void OnMenuSelected(wxCommandEvent& event);
void OnMenuSelected(wxCommandEvent&);
void OnQuit(wxCloseEvent& event);

private:
Expand Down
10 changes: 3 additions & 7 deletions src/mmcheckingpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ wxEND_EVENT_TABLE()
//----------------------------------------------------------------------------

mmCheckingPanel::mmCheckingPanel(wxWindow *parent, mmGUIFrame *frame, int accountID, int id)
: m_listCtrlAccount()
, m_AccountID(accountID)
: m_AccountID(accountID)
, isAllAccounts_((-1 == accountID) ? true : false)
, isTrash_((-2 == accountID) ? true : false)
, m_trans_filter_dlg(nullptr)
, m_frame(frame)
{
Create(parent, id);
Expand Down Expand Up @@ -183,7 +181,7 @@ void mmCheckingPanel::filterTable()
int txnMatch = m_trans_filter_dlg->mmIsRecordMatches(tran, splits);
if (!txnMatch)
continue;
else expandSplits = txnMatch < full_tran.m_splits.size() + 1;
else expandSplits = txnMatch < static_cast<int>(full_tran.m_splits.size()) + 1;
}
else
{
Expand Down Expand Up @@ -820,11 +818,9 @@ void mmCheckingPanel::initFilterSettings()
}

if (j_doc.HasMember("FILTER")) {
Value::MemberIterator v_name = j_doc.FindMember("FILTER");
j_doc["FILTER"].SetString(item.mb_str(), j_doc.GetAllocator());
}
else
{
else {
auto& allocator = j_doc.GetAllocator();
rapidjson::Value value(item.mb_str(), allocator);
j_doc.AddMember("FILTER", value, allocator);
Expand Down

0 comments on commit a721600

Please sign in to comment.