CComponentsFooter: Function setButtonLabels() change parameter

Performance: parameter 'v_content' should be passed by reference
This commit is contained in:
2015-01-12 23:02:30 +01:00
parent f15cf6f57d
commit 56ea6c140f
2 changed files with 4 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ void CComponentsFooter::setButtonLabels(const struct button_label * const conten
setButtonLabels(buttons, label_count, chain_width, label_width);
}
void CComponentsFooter::setButtonLabels(const vector<button_label_l>v_content, const int& chain_width, const int& label_width)
void CComponentsFooter::setButtonLabels(const vector<button_label_l> &v_content, const int& chain_width, const int& label_width)
{
size_t label_count = v_content.size();
button_label_l buttons[label_count];
@@ -237,7 +237,7 @@ void CComponentsFooter::setButtonLabels(const vector<button_label_l>v_content, c
setButtonLabels(buttons, label_count, chain_width, label_width);
}
void CComponentsFooter::setButtonLabels(const vector<button_label_s>v_content, const int& chain_width, const int& label_width)
void CComponentsFooter::setButtonLabels(const vector<button_label_s> &v_content, const int& chain_width, const int& label_width)
{
size_t label_count = v_content.size();
button_label_s buttons[label_count];