Skip to content

Const pointer for HexapodDamage #20

@dogoepp

Description

@dogoepp

Very little importance detail here. Since we use a pointer for extra damage information, would it make sense to use a pointer to const, or even a const pointer to const ?

The code concerned is in hexapod_dart -> hexapod.hpp:

struct HexapodDamage {
        HexapodDamage() {}
        HexapodDamage(const std::string& type, const std::string& data, void* extra = nullptr) : type(type), data(data), extra(extra) {}

        std::string type;
        std::string data;
        void* extra = nullptr;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions