mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Apply clang-tidy's performance-unnecessary-value-param, performance-for-
range-copy git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5448 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -344,7 +344,7 @@ void ProjectAutoNumConfigPage::buildConnections()
|
||||
* Display the current selected context for conductor
|
||||
* @param str, key of context stored in project
|
||||
*/
|
||||
void ProjectAutoNumConfigPage::updateContextConductor(QString str) {
|
||||
void ProjectAutoNumConfigPage::updateContextConductor(const QString& str) {
|
||||
if (str == tr("Nom de la nouvelle numérotation")) m_saw_conductor -> setContext(NumerotationContext());
|
||||
else m_saw_conductor ->setContext(m_project->conductorAutoNum(str));
|
||||
}
|
||||
@@ -354,7 +354,7 @@ void ProjectAutoNumConfigPage::updateContextConductor(QString str) {
|
||||
* Display the current selected context for folio
|
||||
* @param str, key of context stored in project
|
||||
*/
|
||||
void ProjectAutoNumConfigPage::updateContextFolio(QString str) {
|
||||
void ProjectAutoNumConfigPage::updateContextFolio(const QString& str) {
|
||||
if (str == tr("Nom de la nouvelle numérotation")) m_saw_folio -> setContext(NumerotationContext());
|
||||
else m_saw_folio ->setContext(m_project->folioAutoNum(str));
|
||||
}
|
||||
@@ -364,7 +364,7 @@ void ProjectAutoNumConfigPage::updateContextFolio(QString str) {
|
||||
* Display the current selected context for element
|
||||
* @param str, key of context stored in project
|
||||
*/
|
||||
void ProjectAutoNumConfigPage::updateContextElement(QString str)
|
||||
void ProjectAutoNumConfigPage::updateContextElement(const QString& str)
|
||||
{
|
||||
if (str == tr("Nom de la nouvelle numérotation"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user