mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
modified mysql results/row to be ready for range based for
This commit is contained in:
parent
4808dcadcf
commit
f6166bcb94
@ -48,7 +48,7 @@ public:
|
||||
const std::string FieldName(int columnIndex);
|
||||
|
||||
MySQLRequestRow& begin() { return m_CurrentRow; }
|
||||
MySQLRequestRow& end() { return m_OneBeyondRow;}
|
||||
MySQLRequestRow& end() { return m_OneBeyondRow; }
|
||||
|
||||
private:
|
||||
void FreeInternals();
|
||||
|
||||
@ -30,6 +30,12 @@ MySQLRequestRow& MySQLRequestRow::operator=(MySQLRequestRow& moveItem)
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
MySQLRequestRow MySQLRequestRow::operator*()
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
MySQLRequestRow::MySQLRequestRow(MYSQL_RES *result)
|
||||
: m_Result(result)
|
||||
{
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
MySQLRequestRow operator++(int);
|
||||
bool operator==(const MySQLRequestRow& rhs);
|
||||
bool operator!=(const MySQLRequestRow& rhs);
|
||||
|
||||
MySQLRequestRow operator*();
|
||||
char* operator[](int index);
|
||||
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user