Skip to content

Commit

Permalink
[onert] Apply inline variable to OperationNode
Browse files Browse the repository at this point in the history
This commit applies inline variable to class OperationNode.

ONE-DCO-1.0-Signed-off-by: ragmani <[email protected]>
  • Loading branch information
ragmani committed Feb 12, 2025
1 parent 7497df9 commit 3add04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions runtime/onert/core/src/dumper/dot/OperationNode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
namespace onert::dumper::dot
{

const std::string Operation::OPERATION_SHAPE = "rect";
const std::string Operation::BG_COLOR_SCHEME = "pastel18";

Operation::Operation(const ir::OperationIndex &index, const ir::IOperation &node)
: Node{"operation" + std::to_string(index.value())}
{
Expand Down
5 changes: 2 additions & 3 deletions runtime/onert/core/src/dumper/dot/OperationNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ namespace onert::dumper::dot
class Operation : public Node
{
public:
static const std::string OPERATION_SHAPE;
static const std::string BG_COLOR_SCHEME;

static inline const std::string OPERATION_SHAPE = "rect";
static inline const std::string BG_COLOR_SCHEME = "pastel18";
public:
/**
* @brief Construct a new Operation Node object
Expand Down

0 comments on commit 3add04c

Please sign in to comment.