From 64a7c7468ed2c50e50cbd8322f9a24792f5f7d9e Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 13 Sep 2019 13:55:35 +0300 Subject: [PATCH] Make the method inline for performance --- src/XGUI/XGUI_Displayer.cpp | 6 ------ src/XGUI/XGUI_Displayer.h | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) 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; -- 2.39.2