mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-13 23:08:54 -05:00
Declare PropertyInfo as constexpr, rather than const
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user