From 6b024b40cd3c018ef0ce03f1fc6c9a3634066644 Mon Sep 17 00:00:00 2001 From: arng40 Date: Tue, 17 Dec 2024 09:44:42 +0100 Subject: [PATCH] fix errormsg --- src/coreComponents/common/format/table/TableData.cpp | 3 +-- src/coreComponents/common/format/table/unitTests/testTable.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/coreComponents/common/format/table/TableData.cpp b/src/coreComponents/common/format/table/TableData.cpp index 8e1a54a058..b9da62cc67 100644 --- a/src/coreComponents/common/format/table/TableData.cpp +++ b/src/coreComponents/common/format/table/TableData.cpp @@ -25,7 +25,7 @@ namespace geos void TableData::addRow( std::vector< TableData::CellData > const & row ) { - m_rows.push_back( rows ); + m_rows.push_back( row ); } void TableData::addSeparator() @@ -43,7 +43,6 @@ void TableData::addSeparator() void TableData::clear() { m_rows.clear(); - m_errorsMsg.clear(); } std::vector< std::vector< TableData::CellData > > const & TableData::getTableDataRows() const diff --git a/src/coreComponents/common/format/table/unitTests/testTable.cpp b/src/coreComponents/common/format/table/unitTests/testTable.cpp index ec3fc7789f..68c6562a54 100644 --- a/src/coreComponents/common/format/table/unitTests/testTable.cpp +++ b/src/coreComponents/common/format/table/unitTests/testTable.cpp @@ -428,7 +428,7 @@ TEST( testTable, testCellMerging ) tableData.addRow( "Long product size", 54, 4564575, "long size value", 5454554512, 60 ); tableData.addRow( "ProductA", 54, 4564575, "long size value", 5454554512, 60 ); tableData.addSeparator(); - tableData.addRow( "P1", "2002", CellType::MergeNext, CellType::MergeNext, CellType::MergeNext, "1212121245452145454545" ); + tableData.addRow( "P1", "2002", CellType::MergeNext, CellType::MergeNext, CellType::MergeNext, "1212121245452145454545" ); tableData.addSeparator(); tableData.addRow( "Alpha", 1001, 8, "Beta\nwater", "2002\n1.0", CellType::MergeNext );