From df77cec141c42648a89eac44d9dffa51c1c33752 Mon Sep 17 00:00:00 2001 From: Samuel Li Date: Fri, 9 Jul 2021 12:10:07 -0600 Subject: [PATCH] Fix bad initialization (#2782) * fix #2760 * use static Co-authored-by: Samuel Li --- apps/vaporgui/PDatasetTransformWidget.cpp | 1 + apps/vaporgui/PDatasetTransformWidget.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/vaporgui/PDatasetTransformWidget.cpp b/apps/vaporgui/PDatasetTransformWidget.cpp index 164259816e..182efeb4e6 100644 --- a/apps/vaporgui/PDatasetTransformWidget.cpp +++ b/apps/vaporgui/PDatasetTransformWidget.cpp @@ -8,6 +8,7 @@ using namespace VAPoR; +const std::string PDatasetTransformWidget::SelectedDatasetTag = "transformWidgetDatasetTag"; PDatasetTransformWidget::PDatasetTransformWidget(VAPoR::ControlExec *ce) : PWidget("", _section = new VSectionGroup("Transform", diff --git a/apps/vaporgui/PDatasetTransformWidget.h b/apps/vaporgui/PDatasetTransformWidget.h index 272d55f1e5..794924233c 100644 --- a/apps/vaporgui/PDatasetTransformWidget.h +++ b/apps/vaporgui/PDatasetTransformWidget.h @@ -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);