Skip to content

Commit dac7266

Browse files
committed
Use static where applicable.
1 parent 84d611c commit dac7266

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/3rd_party_adapters/nlohmann/JsonGenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <serial_protocol/TaskList.hpp>
66
#include <serial_protocol/TaskObject.hpp>
77

8-
constexpr int defaultJsonIndent = 4;
8+
static constexpr int defaultJsonIndent = 4;
99

1010
template <>
1111
std::string toJsonString<task_tracker_systems::ProtocolVersionObject>(const task_tracker_systems::ProtocolVersionObject &object)
@@ -19,7 +19,7 @@ std::string toJsonString<task_tracker_systems::ProtocolVersionObject>(const task
1919

2020
namespace task_tracker_systems
2121
{
22-
void to_json(nlohmann::json &jsonObject, const task_tracker_systems::TaskObject &object)
22+
static void to_json(nlohmann::json &jsonObject, const task_tracker_systems::TaskObject &object)
2323
{
2424
jsonObject["id"] = object.id;
2525
jsonObject["label"] = object.label;

0 commit comments

Comments
 (0)