mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Fix -Wsign-compare warnings
This commit is contained in:
parent
4b7f784d1b
commit
82f1e6204d
4 changed files with 8 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
UTF8CodePointCountValidator::UTF8CodePointCountValidator(int max_count, QObject* parent)
|
||||
UTF8CodePointCountValidator::UTF8CodePointCountValidator(std::size_t max_count, QObject* parent)
|
||||
: QValidator(parent), m_max_count(max_count)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#include <QString>
|
||||
#include <QValidator>
|
||||
|
||||
|
@ -11,9 +13,10 @@ class UTF8CodePointCountValidator : public QValidator
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit UTF8CodePointCountValidator(int max_count, QObject* parent = nullptr);
|
||||
explicit UTF8CodePointCountValidator(std::size_t max_count, QObject* parent = nullptr);
|
||||
|
||||
QValidator::State validate(QString& input, int& pos) const override;
|
||||
|
||||
int m_max_count;
|
||||
private:
|
||||
std::size_t m_max_count;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue