Skip to content
Snippets Groups Projects
Commit 85bb082d authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Marked some static variables as const for clarity.

cc: @valsson
parent 71fb2870
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ using namespace std;
namespace PLMD {
namespace function {
static std::map<string, double> leptonConstants= {
const static std::map<string, double> leptonConstants= {
{"e", std::exp(1.0)},
{"log2e", 1.0/std::log(2.0)},
{"log10e", 1.0/std::log(10.0)},
......
......@@ -29,7 +29,7 @@
using namespace std;
namespace PLMD {
static std::map<string, double> leptonConstants= {
const static std::map<string, double> leptonConstants= {
{"e", std::exp(1.0)},
{"log2e", 1.0/std::log(2.0)},
{"log10e", 1.0/std::log(10.0)},
......
......@@ -35,7 +35,7 @@
using namespace std;
namespace PLMD {
static std::map<string, double> leptonConstants= {
const static std::map<string, double> leptonConstants= {
{"e", std::exp(1.0)},
{"log2e", 1.0/std::log(2.0)},
{"log10e", 1.0/std::log(10.0)},
......
......@@ -29,7 +29,7 @@
namespace PLMD {
namespace ves {
static std::map<std::string, double> leptonConstants= {
const static std::map<std::string, double> leptonConstants= {
{"e", std::exp(1.0)},
{"log2e", 1.0/std::log(2.0)},
{"log10e", 1.0/std::log(10.0)},
......
......@@ -32,7 +32,7 @@
namespace PLMD {
namespace ves {
static std::map<std::string, double> leptonConstants= {
const static std::map<std::string, double> leptonConstants= {
{"e", std::exp(1.0)},
{"log2e", 1.0/std::log(2.0)},
{"log10e", 1.0/std::log(10.0)},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment