changeset 1237:c14fde4a595c

RadiographyWidget: constness
author Alain Mazy <alain@mazy.be>
date Tue, 10 Dec 2019 18:10:19 +0100
parents 8154350aa195
children e257b91fae2c
files Framework/Radiography/RadiographyWidget.cpp Framework/Radiography/RadiographyWidget.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyWidget.cpp	Mon Dec 09 16:38:02 2019 +0100
+++ b/Framework/Radiography/RadiographyWidget.cpp	Tue Dec 10 18:10:19 2019 +0100
@@ -194,7 +194,7 @@
     BroadcastMessage(SelectionChangedMessage(*this));
   }
 
-  bool RadiographyWidget::LookupSelectedLayer(size_t& layer)
+  bool RadiographyWidget::LookupSelectedLayer(size_t& layer) const
   {
     if (hasSelection_)
     {
--- a/Framework/Radiography/RadiographyWidget.h	Mon Dec 09 16:38:02 2019 +0100
+++ b/Framework/Radiography/RadiographyWidget.h	Tue Dec 10 18:10:19 2019 +0100
@@ -81,7 +81,7 @@
 
     template<typename LayerType> bool SelectLayerByType(size_t index = 0);
 
-    bool LookupSelectedLayer(size_t& layer);
+    bool LookupSelectedLayer(size_t& layer) const;
 
     void OnGeometryChanged(const RadiographyScene::GeometryChangedMessage& message);