Skip to content

Commit

Permalink
Fix bad initialization (#2782)
Browse files Browse the repository at this point in the history
* fix #2760

* use static

Co-authored-by: Samuel Li <shaomeng@cisl-garibaldi>
  • Loading branch information
shaomeng and Samuel Li committed Jul 9, 2021
1 parent ff284d2 commit df77cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/vaporgui/PDatasetTransformWidget.cpp
Expand Up @@ -8,6 +8,7 @@

using namespace VAPoR;

const std::string PDatasetTransformWidget::SelectedDatasetTag = "transformWidgetDatasetTag";

PDatasetTransformWidget::PDatasetTransformWidget(VAPoR::ControlExec *ce)
: PWidget("", _section = new VSectionGroup("Transform",
Expand Down
10 changes: 5 additions & 5 deletions apps/vaporgui/PDatasetTransformWidget.h
Expand Up @@ -11,11 +11,11 @@ class PTransformWidget;


class PDatasetTransformWidget : public PWidget {
VAPoR::ControlExec *_ce;
VSection * _section;
PStringDropdown * _twDataset;
PTransformWidget * _tw;
const std::string SelectedDatasetTag = "transformWidgetDatasetTag";
VAPoR::ControlExec * _ce;
VSection * _section;
PStringDropdown * _twDataset;
PTransformWidget * _tw;
static const std::string SelectedDatasetTag;

public:
PDatasetTransformWidget(VAPoR::ControlExec *ce);
Expand Down

0 comments on commit df77cec

Please sign in to comment.