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
@@ -79,7 +79,7 @@
// items in memory as was shown to be much slower than the current system. ---abock
namespace {
const openspace::properties::Property::PropertyInfo PeriodInfo = {
constexpr openspace::properties::Property::PropertyInfo PeriodInfo = {
"Period",
"Period (in days)",
"The objects period, i.e. the length of its orbit around the parent object given "
@@ -88,7 +88,7 @@ namespace {
"possible to show the effects of precession."
};
const openspace::properties::Property::PropertyInfo ResolutionInfo = {
constexpr openspace::properties::Property::PropertyInfo ResolutionInfo = {
"Resolution",
"Number of samples along the orbit",
"The number of samples along the orbit. This determines the resolution of the "