Skip to content

Commit

Permalink
removed globlal variables and added static class variables
Browse files Browse the repository at this point in the history
  • Loading branch information
oleeng committed Jul 23, 2024
1 parent 2851122 commit 3433aac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ namespace hal
int get_selected_probing_model();
int get_probe_limit();

static int last_probe_limit;
static int last_probe_type;

private:
QRadioButton* t_probe_option;
QRadioButton* scan_chain_option;
Expand Down
4 changes: 2 additions & 2 deletions plugins/netlist_modifier/src/open_popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

namespace hal
{
int last_probe_limit = -1;
int last_probe_type = -1;
int IniSettingsPopup::last_probe_limit = -1;
int IniSettingsPopup::last_probe_type = -1;

IniSettingsPopup::IniSettingsPopup(QWidget* parent) : QDialog(parent)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ namespace hal
explicit FilePickerPopup(QWidget* parent = nullptr);
std::string get_file_path();

static QString last_file_input;

private:
QLineEdit* filePathLineEdit;
QPushButton* openFileButton;
Expand Down
2 changes: 1 addition & 1 deletion plugins/netlist_simulator_study/src/open_popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace hal
{
QString last_file_input = "";
QString FilePickerPopup::last_file_input = "";

FilePickerPopup::FilePickerPopup(QWidget* parent) : QDialog(parent)
{
Expand Down

0 comments on commit 3433aac

Please sign in to comment.