diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-05 19:52:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-05 20:00:43 +0300 |
commit | 64c2bcc59b5b807c962da3397acdd941e7d20c9e (patch) | |
tree | 1fd4cfdd77d01f9b76900524a615fe78c5dc04ab | |
parent | b7f3981fc5ee94a6d8989a29f850ee3a3eaa7baf (diff) | |
download | mv-1.7.8.5.tar.gz mv-1.7.8.5.tar.bz2 mv-1.7.8.5.tar.xz mv-1.7.8.5.zip |
Fix compilation for macosx.v1.7.8.5
-rw-r--r-- | src/gui/shortcut/itemshortcut.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp index 526baa265..7b9bab6e6 100644 --- a/src/gui/shortcut/itemshortcut.cpp +++ b/src/gui/shortcut/itemshortcut.cpp @@ -68,11 +68,12 @@ void ItemShortcut::load() const Configuration *cfg = &serverConfig; if (mNumber != 0) { - name = std::string("shortcut").append(toString(mNumber)).append("_"); + name = std::string("shortcut").append( + toString(CAST_S32(mNumber))).append("_"); color = std::string("shortcutColor").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); data = std::string("shortcutData").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); } else { @@ -102,11 +103,12 @@ void ItemShortcut::save() const return; if (mNumber != 0) { - name = std::string("shortcut").append(toString(mNumber)).append("_"); + name = std::string("shortcut").append( + toString(CAST_S32(mNumber))).append("_"); color = std::string("shortcutColor").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); data = std::string("shortcutData").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); } else { |