summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-05 09:28:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-05 09:28:47 +0100
commit8aec2c52ec39e2f2e350acc8d09899821404951b (patch)
tree11da102b204d1b35046cdfa8bf8e76e181cb472e /facetracknoir
parent66a84f555958a47dbaff4c3fb6898f02122b5006 (diff)
get rid of dubious cast
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/facetracknoir.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index ef470c7a..fc4aac51 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -410,12 +410,17 @@ void FaceTrackNoIR::loadSettings() {
}
}
+ CurveConfigurationDialog* ccd = nullptr;
+
if (!_curve_config)
{
- _curve_config = new CurveConfigurationDialog( this, this );
+ ccd = new CurveConfigurationDialog( this, this );
+ _curve_config = ccd;
+ } else {
+ ccd = dynamic_cast<CurveConfigurationDialog*>(_curve_config);
}
- ((CurveConfigurationDialog*)_curve_config)->loadSettings();
+ ccd->loadSettings();
looping = false;
}