Skip to content

Commit

Permalink
refactor: forward declaration of class not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 5, 2023
1 parent 42f3c7a commit b2c303c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/dpp/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
#include <dpp/json_fwd.h>

#define event_decl(x,wstype) /** @brief Internal event handler for wstype websocket events. Called for each websocket message of this type. @internal */ \
class x : public event { public: virtual void handle(dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };

namespace dpp {
class discord_client;
};
class x : public event { public: virtual void handle(class dpp::discord_client* client, nlohmann::json &j, const std::string &raw); };

/**
* @brief The events namespace holds the internal event handlers for each websocket event.
Expand Down

0 comments on commit b2c303c

Please sign in to comment.