mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-02 01:52:25 +00:00
Fix for GCC+11 compile
This commit is contained in:
parent
127682cc84
commit
192f9f0cb5
@ -10,6 +10,8 @@
|
|||||||
#include <../common/types.h>
|
#include <../common/types.h>
|
||||||
#include <../common/MySQLRequestRow.h>
|
#include <../common/MySQLRequestRow.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <string.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
class MySQLRequestResult {
|
class MySQLRequestResult {
|
||||||
private:
|
private:
|
||||||
@ -52,4 +54,5 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,15 @@ MySQLRequestRow::MySQLRequestRow(MySQLRequestRow&& moveItem)
|
|||||||
moveItem.m_MySQLRow = nullptr;
|
moveItem.m_MySQLRow = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MySQLRequestRow& MySQLRequestRow::operator=(MySQLRequestRow& moveItem)
|
||||||
|
{
|
||||||
|
m_Result = moveItem.m_Result;
|
||||||
|
m_MySQLRow = moveItem.m_MySQLRow;
|
||||||
|
|
||||||
|
moveItem.m_Result = nullptr;
|
||||||
|
moveItem.m_MySQLRow = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
MySQLRequestRow::MySQLRequestRow(MYSQL_RES *result)
|
MySQLRequestRow::MySQLRequestRow(MYSQL_RES *result)
|
||||||
: m_Result(result), m_MySQLRow(mysql_fetch_row(m_Result))
|
: m_Result(result), m_MySQLRow(mysql_fetch_row(m_Result))
|
||||||
{
|
{
|
||||||
@ -51,4 +60,4 @@ char* MySQLRequestRow::operator[](int index)
|
|||||||
{
|
{
|
||||||
|
|
||||||
return m_MySQLRow[index];
|
return m_MySQLRow[index];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,7 @@ public:
|
|||||||
MySQLRequestRow(MYSQL_RES *result);
|
MySQLRequestRow(MYSQL_RES *result);
|
||||||
MySQLRequestRow(const MySQLRequestRow& row);
|
MySQLRequestRow(const MySQLRequestRow& row);
|
||||||
MySQLRequestRow(MySQLRequestRow&& moveItem);
|
MySQLRequestRow(MySQLRequestRow&& moveItem);
|
||||||
|
MySQLRequestRow& operator=(MySQLRequestRow& moveItem);
|
||||||
MySQLRequestRow& operator++();
|
MySQLRequestRow& operator++();
|
||||||
MySQLRequestRow operator++(int);
|
MySQLRequestRow operator++(int);
|
||||||
bool operator==(const MySQLRequestRow& rhs);
|
bool operator==(const MySQLRequestRow& rhs);
|
||||||
@ -34,4 +35,4 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user