diff --git a/Utils.cpp b/Utils.cpp index 46e1ac02..627ce7de 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -390,7 +390,7 @@ bool CTable::SetCell(const CString& sColumn, const CString& sValue, unsigned int bool CTable::GetLine(unsigned int uIdx, CString& sLine) const { stringstream ssRet; - if (!size()) { + if (empty()) { return false; } diff --git a/Utils.h b/Utils.h index f1189396..1b67a0a5 100644 --- a/Utils.h +++ b/Utils.h @@ -195,6 +195,9 @@ public: /// @return The number of rows in this table, not counting the header. using vector >::size; + + /// @return True if this table doesn't contain any rows. + using vector >::empty; private: unsigned int GetColumnIndex(const CString& sName) const;