diff --git a/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp b/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp
index 195b46d43702faa336aa3d83fe3a98e5c3f9826e..b18c820bce9bf9c3b8ea669965f144fcc8098e78 100644
--- a/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp
+++ b/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp
@@ -18,8 +18,8 @@
 #include <limits>
 
 // default size of a new window
-const float DEFAULTX = 500.0;
-const float DEFAULTY = 300.0;
+static constexpr float kDefaultX = 500.0;
+static constexpr float kDefaultY = 300.0;
 
 /**
  * Creates a new scene. Since no data points are given some default
@@ -175,8 +175,8 @@ void DiagramScene::adjustScaling()
 {
     if ((_unscaledBounds.width() > 0) && (_unscaledBounds.height() > 0))
     {
-        _scaleX = DEFAULTX / static_cast<float>(_unscaledBounds.width());
-        _scaleY = DEFAULTY / static_cast<float>(_unscaledBounds.height());
+        _scaleX = kDefaultX / static_cast<float>(_unscaledBounds.width());
+        _scaleY = kDefaultY / static_cast<float>(_unscaledBounds.height());
     }
 }