summaryrefslogtreecommitdiff
path: root/src/citra_qt/util/spinbox.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Hao2017-01-05 00:48:29 +0800
committerGravatar Yuri Kunde Schlesner2017-01-04 13:48:29 -0300
commitc18cb1b192d60499af3d68b244e86c8dd8f55200 (patch)
tree48c481884bb29dd7bde72694a6ed703bb416d7c3 /src/citra_qt/util/spinbox.cpp
parentUpdate .travis.yml (diff)
downloadyuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.gz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.xz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.zip
Fix some warnings (#2399)
Diffstat (limited to 'src/citra_qt/util/spinbox.cpp')
-rw-r--r--src/citra_qt/util/spinbox.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/citra_qt/util/spinbox.cpp b/src/citra_qt/util/spinbox.cpp
index feb0ea1b3..212709007 100644
--- a/src/citra_qt/util/spinbox.cpp
+++ b/src/citra_qt/util/spinbox.cpp
@@ -165,13 +165,6 @@ void CSpinBox::UpdateText() {
165 // Uppercase digits greater than 9. 165 // Uppercase digits greater than 9.
166 mask += ">"; 166 mask += ">";
167 167
168 // The greatest signed 64-bit number has 19 decimal digits.
169 // TODO: Could probably make this more generic with some logarithms.
170 // For reference, unsigned 64-bit can have up to 20 decimal digits.
171 int digits = (num_digits != 0)
172 ? num_digits
173 : (base == 16) ? 16 : (base == 10) ? 19 : 0xFF; // fallback case...
174
175 // Match num_digits digits 168 // Match num_digits digits
176 // Digits irrelevant to the chosen number base are filtered in the validator 169 // Digits irrelevant to the chosen number base are filtered in the validator
177 mask += QString("H").repeated(std::max(num_digits, 1)); 170 mask += QString("H").repeated(std::max(num_digits, 1));