summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-04-03 10:15:11 (GMT)
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-04-03 10:15:11 (GMT)
commit1eee121af8f734667143617ac677ca0807c512c5 (patch)
tree9d5b1f5e73215a501d6d1bd1b992fe43954b21aa
parent7ba7f72f14304887ab3f2700275a52af7e5a4ca1 (diff)
Prefer const variable over define.
-rw-r--r--src/calculator/gasCalculator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calculator/gasCalculator.h b/src/calculator/gasCalculator.h
index edd8bb4..38ddbc9 100644
--- a/src/calculator/gasCalculator.h
+++ b/src/calculator/gasCalculator.h
@@ -28,7 +28,7 @@
#include "ui_gasCalculator.h"
// The universal Gas constant is defined here.
-#define R 0.08206
+const double R = 0.08206;
using namespace KUnitConversion;