Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gerstrong committed Dec 2, 2023
1 parent 4b2e059 commit 687e182
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/stockdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ class mmStockDialog : public wxDialog
wxListCtrl* m_price_listbox = nullptr;

Model_Stock::Data* m_stock = nullptr;
bool m_edit;
int m_account_id;
mmGUIFrame* m_gui_frame = nullptr;
bool m_edit = false;
int m_account_id = 0;

enum
{
ID_DPC_STOCK_PDATE = wxID_HIGHEST + 800,
Expand Down
2 changes: 1 addition & 1 deletion src/themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool mmThemesDialog::vfsThemeImageLoaded = false;
mmThemesDialog::ThemeEntry mmThemesDialog::getThemeEntry(const wxString& name)
{
ThemeEntry thisTheme;
for (const auto theme : m_themes)
for (const auto &theme : m_themes)
{
if (theme.name == name)
{
Expand Down
4 changes: 2 additions & 2 deletions src/transactionsupdatedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ transactionsUpdateDialog::transactionsUpdateDialog(wxWindow* parent
m_hasNonTransfers = true;
}

m_custom_fields = new mmCustomDataTransaction(this, NULL, ID_CUSTOMFIELDS);
m_custom_fields = new mmCustomDataTransaction(this, 0, ID_CUSTOMFIELDS);

this->SetFont(parent->GetFont());
Create(parent);
Expand Down Expand Up @@ -529,7 +529,7 @@ void transactionsUpdateDialog::SetPayeeTransferControls()
}
}

void transactionsUpdateDialog::OnTransTypeChanged(wxCommandEvent& event)
void transactionsUpdateDialog::OnTransTypeChanged([[maybe_unused]] wxCommandEvent& event)
{
SetPayeeTransferControls();
}
Expand Down

0 comments on commit 687e182

Please sign in to comment.