cc_frm_header: use more plausible parameter name in addContextButton()

Origin commit data
------------------
Commit: 8839a3e954
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-02-08 (Tue, 08 Feb 2022)
This commit is contained in:
2022-02-08 12:06:19 +01:00
committed by vanhofen
parent b8d41208ed
commit 9f9b179b53
2 changed files with 9 additions and 9 deletions

View File

@@ -393,16 +393,16 @@ void CComponentsHeader::initLogo()
}
}
void CComponentsHeader::addContextButton(const std::string& button_name)
void CComponentsHeader::addContextButton(const std::string& icon_name)
{
v_cch_btn.push_back(button_name);
v_cch_btn.push_back(icon_name);
dprintf(DEBUG_DEBUG, "[CComponentsHeader] %s added %d default buttons...\n", __func__, (int)v_cch_btn.size());
}
void CComponentsHeader::addContextButton(const std::vector<std::string>& v_button_names)
void CComponentsHeader::addContextButton(const std::vector<std::string>& v_icon_names)
{
for (size_t i= 0; i< v_button_names.size(); i++)
addContextButton(v_button_names[i]);
for (size_t i= 0; i< v_icon_names.size(); i++)
addContextButton(v_icon_names[i]);
}
void CComponentsHeader::addContextButton(const int& buttons)