Skip to content

Commit

Permalink
fix: Variables visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
guglielmo-boi committed Mar 21, 2024
1 parent 8509957 commit ef5a497
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/templates/message_parser.cpp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace MQTTTopics
{

MessageParser::Variables::Variables(
{%- for variable in variables -%}
const std::string& {{ variable }}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/message_parser.h.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class MessageParser
public:
typedef void (*parse_t)(const std::string& payload, void*);

private:
struct Variables
{
Variables(
Expand All @@ -33,6 +32,7 @@ private:
{%- endfor %}
};

private:
struct TopicNode
{
std::unique_ptr<parse_t> parse;
Expand Down

0 comments on commit ef5a497

Please sign in to comment.