tmp
This commit is contained in:
parent
676c665619
commit
bb6f97b6aa
@ -313,11 +313,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row)
|
|||||||
{
|
{
|
||||||
if (iter_row)
|
if (iter_row)
|
||||||
{
|
{
|
||||||
if (thead_ != RowHead && thead_ != BothHead)
|
|
||||||
{
|
|
||||||
throw std::runtime_error("[gctl::dsv_io] The table is initialized with no row names.");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (size_t i = 0; i < row_num_; i++)
|
for (size_t i = 0; i < row_num_; i++)
|
||||||
{
|
{
|
||||||
if (table_[i][0].str_ == name) return i;
|
if (table_[i][0].str_ == name) return i;
|
||||||
@ -327,11 +322,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (thead_ != ColumnHead && thead_ != BothHead)
|
|
||||||
{
|
|
||||||
throw std::runtime_error("[gctl::dsv_io] The table is initialized with no column names.");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (size_t i = 0; i < col_num_; i++)
|
for (size_t i = 0; i < col_num_; i++)
|
||||||
{
|
{
|
||||||
if (table_[0][i].str_ == name) return i;
|
if (table_[0][i].str_ == name) return i;
|
||||||
|
Loading…
Reference in New Issue
Block a user