Replace all std::pair with QPair

This commit is contained in:
MangosArentLiterature 2021-06-21 22:14:37 -05:00
parent 1e20ab0ae6
commit ef3103a87f
4 changed files with 6 additions and 6 deletions

View File

@ -696,7 +696,7 @@ class AreaData : public QObject {
* * First, a `QStringList` that is the packet of the statement that was advanced to.
* * Then, a `TestimonyProgress` value that describes how the advancement happened.
*/
std::pair<QStringList, AreaData::TestimonyProgress> jumpToStatement(int f_position);
QPair<QStringList, AreaData::TestimonyProgress> jumpToStatement(int f_position);
/**
* @brief Returns a copy of the judgelog in the area.

View File

@ -64,7 +64,7 @@ public:
* * First, a `bool` that is true if the query could return at least one such record.
* * Then, a `QString` that is the reason for the ban.
*/
std::pair<bool, QString> isIPBanned(QString ipid);
QPair<bool, QString> isIPBanned(QString ipid);
/**
* @brief Checks if there is a record in the Bans table with the given hardware ID.
@ -75,7 +75,7 @@ public:
* * First, a `bool` that is true if the query could return at least one such record.
* * Then, a `QString` that is the reason for the ban.
*/
std::pair<bool, QString> isHDIDBanned(QString hdid);
QPair<bool, QString> isHDIDBanned(QString hdid);
/**
* @brief Gets the ID number of a given ban.

View File

@ -403,7 +403,7 @@ void AreaData::removeStatement(int f_position)
--m_statement;
}
std::pair<QStringList, AreaData::TestimonyProgress> AreaData::jumpToStatement(int f_position)
QPair<QStringList, AreaData::TestimonyProgress> AreaData::jumpToStatement(int f_position)
{
m_statement = f_position;

View File

@ -31,7 +31,7 @@ DBManager::DBManager() :
updateDB(db_version);
}
std::pair<bool, QString> DBManager::isIPBanned(QString ipid)
QPair<bool, QString> DBManager::isIPBanned(QString ipid)
{
QSqlQuery query;
query.prepare("SELECT * FROM BANS WHERE IPID = ? ORDER BY TIME DESC");
@ -51,7 +51,7 @@ std::pair<bool, QString> DBManager::isIPBanned(QString ipid)
else return {false, nullptr};
}
std::pair<bool, QString> DBManager::isHDIDBanned(QString hdid)
QPair<bool, QString> DBManager::isHDIDBanned(QString hdid)
{
QSqlQuery query;
query.prepare("SELECT * FROM BANS WHERE HDID = ? ORDER BY TIME DESC");