Skip to content

Commit

Permalink
string_view => string
Browse files Browse the repository at this point in the history
  • Loading branch information
arng40 committed Jul 5, 2024
1 parent 2bd3e7d commit d81d7c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coreComponents/codingUtilities/Section.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/codingUtilities/Section.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d81d7c4

Please sign in to comment.