ui: Fix hash function name localization

This commit is contained in:
WerWolv
2022-06-14 11:54:34 +02:00
parent 653a688fe6
commit 5551e82fea
3 changed files with 16 additions and 16 deletions

View File

@@ -426,7 +426,7 @@ namespace hex {
class Hash {
public:
Hash(std::string name) : m_name(std::move(name)) {}
Hash(std::string unlocalizedName) : m_unlocalizedName(std::move(unlocalizedName)) {}
class Function {
public:
@@ -463,8 +463,8 @@ namespace hex {
virtual void draw() { }
[[nodiscard]] virtual Function create(std::string name) = 0;
[[nodiscard]] const std::string &getName() const {
return this->m_name;
[[nodiscard]] const std::string &getUnlocalizedName() const {
return this->m_unlocalizedName;
}
protected:
@@ -473,7 +473,7 @@ namespace hex {
}
private:
std::string m_name;
std::string m_unlocalizedName;
};
namespace impl {