Declare PropertyInfo as constexpr, rather than const

This commit is contained in:
Alexander Bock
2018-06-28 17:08:56 -04:00
parent 9408c0c45f
commit 99a6efca8e
92 changed files with 534 additions and 527 deletions
+8 -8
View File
@@ -42,13 +42,13 @@ namespace {
constexpr const char* KeyTag = "Tag";
constexpr const float PlaneDepth = -2.f;
const openspace::properties::Property::PropertyInfo EnabledInfo = {
constexpr openspace::properties::Property::PropertyInfo EnabledInfo = {
"Enabled",
"Is Enabled",
"This setting determines whether this sceen space plane will be visible or not."
};
const openspace::properties::Property::PropertyInfo FlatScreenInfo = {
constexpr openspace::properties::Property::PropertyInfo FlatScreenInfo = {
"FlatScreen",
"Flat Screen specification",
"This value determines whether the location of this screen space plane will be "
@@ -59,21 +59,21 @@ namespace {
"useful in a planetarium environment."
};
const openspace::properties::Property::PropertyInfo EuclideanPositionInfo = {
constexpr openspace::properties::Property::PropertyInfo EuclideanPositionInfo = {
"EuclideanPosition",
"Euclidean coordinates",
"This value determines the position of this screen space plane in Euclidean "
"two-dimensional coordinates."
};
const openspace::properties::Property::PropertyInfo SphericalPositionInfo = {
constexpr openspace::properties::Property::PropertyInfo SphericalPositionInfo = {
"SphericalPosition",
"Spherical coordinates",
"This value determines the position of this screen space plane in a spherical "
"coordinate system."
};
const openspace::properties::Property::PropertyInfo DepthInfo = {
constexpr openspace::properties::Property::PropertyInfo DepthInfo = {
"Depth",
"Depth value",
"This value determines the depth of the plane. This value does not change the "
@@ -82,7 +82,7 @@ namespace {
"value."
};
const openspace::properties::Property::PropertyInfo ScaleInfo = {
constexpr openspace::properties::Property::PropertyInfo ScaleInfo = {
"Scale",
"Scale value",
"This value determines a scale factor for the plane. The default size of a plane "
@@ -90,7 +90,7 @@ namespace {
"the image being displayed."
};
const openspace::properties::Property::PropertyInfo AlphaInfo = {
constexpr openspace::properties::Property::PropertyInfo AlphaInfo = {
"Alpha",
"Transparency",
"This value determines the transparency of the screen space plane. If this value "
@@ -98,7 +98,7 @@ namespace {
"completely transparent."
};
const openspace::properties::Property::PropertyInfo DeleteInfo = {
constexpr openspace::properties::Property::PropertyInfo DeleteInfo = {
"Delete",
"Delete",
"If this property is triggered, this screen space plane is removed from the "