From 7f1a6eace1dc3021807e763776f4b146386a2de5 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 10 Feb 2023 12:24:29 +0100 Subject: [PATCH] [App/DE] Rename variable acc. to google styleguide --- .../DataExplorer/DataView/DiagramView/DiagramScene.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp b/Applications/DataExplorer/DataView/DiagramView/DiagramScene.cpp index 195b46d4370..b18c820bce9 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()); } } -- GitLab