diff options
author | Jonathan Hao <johnathan79717@gmail.com> | 2017-01-05 00:48:29 +0800 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-04 13:48:29 -0300 |
commit | c18cb1b192d60499af3d68b244e86c8dd8f55200 (patch) | |
tree | 48c481884bb29dd7bde72694a6ed703bb416d7c3 /src/citra_qt/util/spinbox.cpp | |
parent | 159bcbfdbc1022da92f9006ba9acb5d7f7405604 (diff) |
Fix some warnings (#2399)
Diffstat (limited to 'src/citra_qt/util/spinbox.cpp')
-rw-r--r-- | src/citra_qt/util/spinbox.cpp | 7 |
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() { // Uppercase digits greater than 9. mask += ">"; - // The greatest signed 64-bit number has 19 decimal digits. - // TODO: Could probably make this more generic with some logarithms. - // For reference, unsigned 64-bit can have up to 20 decimal digits. - int digits = (num_digits != 0) - ? num_digits - : (base == 16) ? 16 : (base == 10) ? 19 : 0xFF; // fallback case... - // Match num_digits digits // Digits irrelevant to the chosen number base are filtered in the validator mask += QString("H").repeated(std::max(num_digits, 1)); |