mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
Fixed clazy warnings: pass large objects by reference to const.
This commit is contained in:
@@ -103,7 +103,7 @@ namespace BlackGui
|
||||
Q_UNUSED(paintEvent);
|
||||
}
|
||||
|
||||
void CValidationIndicator::setBackgroundColor(const QString colorName)
|
||||
void CValidationIndicator::setBackgroundColor(const QString &colorName)
|
||||
{
|
||||
if (colorName.isEmpty())
|
||||
{
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace BlackGui
|
||||
QScopedPointer<Ui::CValidationIndicator> ui;
|
||||
|
||||
//! Set background color
|
||||
void setBackgroundColor(const QString colorName);
|
||||
void setBackgroundColor(const QString &colorName);
|
||||
|
||||
QTimer m_resetTimer; //!< reset to neutral
|
||||
QString m_originalStyleSheet; //!< stored, to be able to reset
|
||||
|
||||
Reference in New Issue
Block a user