diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-27 01:34:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-27 01:34:49 +0300 |
commit | 68a7dd225969fcdfb9c07b99db43756a2b1dec7c (patch) | |
tree | 644c14f9b178a968a53e742fb5f37aaf29fc062d /src/gui/widgets | |
parent | d3f3ec92d583fcaecccb500c8940f33d7228ff89 (diff) | |
download | plus-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.gz plus-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.bz2 plus-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.xz plus-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.zip |
Change attributes value type to int64.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/statspage.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/statspage.h | 4 | ||||
-rw-r--r-- | src/gui/widgets/statspagebasic.cpp | 6 | ||||
-rw-r--r-- | src/gui/widgets/statspagebasic.h | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/statspage.cpp b/src/gui/widgets/statspage.cpp index 5fa58f2e5..0540b1a24 100644 --- a/src/gui/widgets/statspage.cpp +++ b/src/gui/widgets/statspage.cpp @@ -70,8 +70,8 @@ void StatsPage::widgetResized(const Event &event A_UNUSED) } void StatsPage::attributeChanged(const AttributesT id, - const int oldVal A_UNUSED, - const int newVal A_UNUSED) + const int64_t oldVal A_UNUSED, + const int64_t newVal A_UNUSED) { const Attrs::const_iterator it = mAttrs.find(id); if (it != mAttrs.end() && (it->second != nullptr)) diff --git a/src/gui/widgets/statspage.h b/src/gui/widgets/statspage.h index 36a43bf6f..ad62aebeb 100644 --- a/src/gui/widgets/statspage.h +++ b/src/gui/widgets/statspage.h @@ -45,8 +45,8 @@ class StatsPage final : public Container, void widgetResized(const Event &event) override final; void attributeChanged(const AttributesT id, - const int oldVal, - const int newVal) override final; + const int64_t oldVal, + const int64_t newVal) override final; void statChanged(const AttributesT id, const int oldVal1, diff --git a/src/gui/widgets/statspagebasic.cpp b/src/gui/widgets/statspagebasic.cpp index ec00026d4..249d4f337 100644 --- a/src/gui/widgets/statspagebasic.cpp +++ b/src/gui/widgets/statspagebasic.cpp @@ -89,8 +89,8 @@ void StatsPageBasic::statChanged(const AttributesT id, } void StatsPageBasic::attributeChanged(const AttributesT id, - const int oldVal A_UNUSED, - const int newVal) + const int64_t oldVal A_UNUSED, + const int64_t newVal) { PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wswitch-enum") @@ -99,7 +99,7 @@ void StatsPageBasic::attributeChanged(const AttributesT id, case Attributes::PLAYER_CHAR_POINTS: mCharacterPointsLabel->setCaption(strprintf( // TRANSLATORS: status window label - _("Character points: %d"), newVal)); + _("Character points: %d"), CAST_S32(newVal))); mCharacterPointsLabel->adjustSize(); // Update all attributes diff --git a/src/gui/widgets/statspagebasic.h b/src/gui/widgets/statspagebasic.h index 7390e4985..d56b8aeff 100644 --- a/src/gui/widgets/statspagebasic.h +++ b/src/gui/widgets/statspagebasic.h @@ -45,8 +45,8 @@ class StatsPageBasic final : public Container, void widgetResized(const Event &event) override final; void attributeChanged(const AttributesT id, - const int oldVal, - const int newVal) override final; + const int64_t oldVal, + const int64_t newVal) override final; void statChanged(const AttributesT id, const int oldVal1, |