diff --git a/src/coreComponents/codingUtilities/Section.cpp b/src/coreComponents/codingUtilities/Section.cpp index be273dc9600..e6f98e48f35 100644 --- a/src/coreComponents/codingUtilities/Section.cpp +++ b/src/coreComponents/codingUtilities/Section.cpp @@ -41,7 +41,7 @@ void Section::setMinWidth( integer const & minWidth ) m_rowMinWidth = minWidth; } -void Section::computeMaxRowSize( string const & title, +void Section::computeMaxRowSize( string_view title, std::vector< string > const & rowsDescription ) { integer const titleLength = title.length() + m_marginBorder * 2 + m_nbSpecialChar * 2; diff --git a/src/coreComponents/codingUtilities/Section.hpp b/src/coreComponents/codingUtilities/Section.hpp index fd21963d628..77ebb39d50b 100644 --- a/src/coreComponents/codingUtilities/Section.hpp +++ b/src/coreComponents/codingUtilities/Section.hpp @@ -76,7 +76,7 @@ class Section * @param m_sectionTitle The table title * @param descriptions The descriptions vector */ - void computeMaxRowSize( string const & m_sectionTitle, + void computeMaxRowSize( string_view m_sectionTitle, std::vector< string > const & descriptions ); /** * @brief Build a description from the name and variadic values descriptions