service: Mark FunctionInfo arrays as constexpr

Now that the FunctionInfo type is constexpr, the arrays of FunctionInfo
instances can also be made constexpr.
This commit is contained in:
Lioncash
2018-12-17 23:55:18 -05:00
parent a9c3c042a7
commit 4c48c9784a
94 changed files with 226 additions and 221 deletions

View File

@@ -14,7 +14,7 @@ class ErrorUploadContext final : public ServiceFramework<ErrorUploadContext> {
public:
explicit ErrorUploadContext() : ServiceFramework{"eupld:c"} {
// clang-format off
static const FunctionInfo functions[] = {
static constexpr FunctionInfo functions[] = {
{0, nullptr, "SetUrl"},
{1, nullptr, "ImportCrt"},
{2, nullptr, "ImportPki"},
@@ -30,7 +30,7 @@ class ErrorUploadRequest final : public ServiceFramework<ErrorUploadRequest> {
public:
explicit ErrorUploadRequest() : ServiceFramework{"eupld:r"} {
// clang-format off
static const FunctionInfo functions[] = {
static constexpr FunctionInfo functions[] = {
{0, nullptr, "Initialize"},
{1, nullptr, "UploadAll"},
{2, nullptr, "UploadSelected"},