Fix clang release build (#847)

Avoid missing non-void function return (#846)
This commit is contained in:
Jim Lewis
2020-07-17 09:04:42 -05:00
committed by GitHub
parent 8cbd650b16
commit 36c281b2a0

View File

@@ -302,18 +302,11 @@ const std::string& DataRow::operator[](int column)const
std::string& DataRow::operator[](int column)
{
assert((column > -1) && "Index out of bound");
assert((column > -1 && (size_t)column <= m_row.size())
&& "Index out of bound");
if ((size_t)column == m_row.size()) m_row.push_back("");
if ((size_t)column < m_row.size())
return m_row[column];
if (column == m_row.size())
{
m_row.push_back("");
return m_row[column];
}
assert(0 && "Index out of bound.");
return m_row[column];
}
/*