1
0
mirror of synced 2025-02-28 07:00:37 +01:00

patterns: Fixed pointer type displaying causing crashes

Fixes #480
This commit is contained in:
WerWolv 2022-03-22 08:19:14 +01:00
parent 5dfa9cf501
commit 47fd5bdc00

View File

@ -31,7 +31,7 @@ namespace hex::pl {
} }
[[nodiscard]] std::string getFormattedName() const override { [[nodiscard]] std::string getFormattedName() const override {
std::string result = this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName() + "* : "; std::string result = (this->getTypeName().empty() ? this->m_pointedAt->getTypeName() : this->getTypeName()) + "* : ";
switch (this->getSize()) { switch (this->getSize()) {
case 1: case 1:
result += "u8"; result += "u8";