optimize by passing by reference
optimize by using std::move
This commit is contained in:
2026-02-14 14:32:47 +01:00
parent 14a4e15962
commit 8b1db7af11
14 changed files with 41 additions and 41 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ class UI_table : public UI_item
* @param index The index of the column
* @return std::string The label of the column
*/
std::string column_label(size_t index) const;
std::string column_label(size_t index) const &;
/**
* @brief Insert an item into the table at the specified row and column
@@ -107,7 +107,7 @@ class UI_table : public UI_item
* @param column The column of the item
* @return std::string The text of the item
*/
std::string item(size_t row, size_t column) const;
std::string item(size_t row, size_t column) const &;
/**
* @brief empty_item This function clears the item