From: vsv Date: Fri, 13 Sep 2019 10:55:35 +0000 (+0300) Subject: Make the method inline for performance X-Git-Tag: V9_4_0a2~4^2~102 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=64a7c7468ed2c50e50cbd8322f9a24792f5f7d9e;p=modules%2Fshaper.git Make the method inline for performance --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 2b1c9a1ab..3dd321c99 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -618,12 +618,6 @@ bool XGUI_Displayer::enableUpdateViewer(const bool isEnabled) return aWasEnabled; } -//************************************************************** -bool XGUI_Displayer::isUpdateEnabled() const -{ - return myViewerBlockedRecursiveCount == 0; -} - //************************************************************** void XGUI_Displayer::updateViewer() const { diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index 62362084a..45ea2eecb 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -277,7 +277,10 @@ public: bool enableUpdateViewer(const bool isEnabled); /// Returns true if the viewer update is not blocked - bool isUpdateEnabled() const; + bool isUpdateEnabled() const + { + return myViewerBlockedRecursiveCount == 0; + } /// Updates the viewer void updateViewer() const;