From 38388cf650ef49cbce48af5dd33bdbe2487c8cbe Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 28 Apr 2017 21:15:53 +0200 Subject: [PATCH] remove undesired virtual keyword from ViewProviderPythonFeatureImp --- src/Gui/ViewProviderPythonFeature.cpp | 3 --- src/Gui/ViewProviderPythonFeature.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Gui/ViewProviderPythonFeature.cpp b/src/Gui/ViewProviderPythonFeature.cpp index 18540b4655..9275570685 100644 --- a/src/Gui/ViewProviderPythonFeature.cpp +++ b/src/Gui/ViewProviderPythonFeature.cpp @@ -1019,9 +1019,6 @@ bool ViewProviderPythonFeatureImp::isShow() const Py::Boolean ok(method.apply(args)); return static_cast(ok) ? true : false; } - else { - return false; - } } } catch (Py::Exception&) { diff --git a/src/Gui/ViewProviderPythonFeature.h b/src/Gui/ViewProviderPythonFeature.h index 0428b62242..b707b9fa88 100644 --- a/src/Gui/ViewProviderPythonFeature.h +++ b/src/Gui/ViewProviderPythonFeature.h @@ -73,7 +73,7 @@ public: /** @name Display methods */ //@{ /// Returns true if the icon must always appear enabled in the tree view - virtual bool isShow() const; + bool isShow() const; /// get the default display mode const char* getDefaultDisplayMode() const; /// returns a list of all possible modes