mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +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:
@@ -16,6 +16,8 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "elementinfopartwidget.h"
|
||||
|
||||
#include <utility>
|
||||
#include "ui_elementinfopartwidget.h"
|
||||
|
||||
|
||||
@@ -26,10 +28,10 @@
|
||||
* @param translated_key the string key translated
|
||||
* @param parent parent widget
|
||||
*/
|
||||
ElementInfoPartWidget::ElementInfoPartWidget(QString key, QString translated_key, QWidget *parent):
|
||||
ElementInfoPartWidget::ElementInfoPartWidget(QString key, const QString& translated_key, QWidget *parent):
|
||||
QWidget(parent),
|
||||
ui(new Ui::ElementInfoPartWidget),
|
||||
key_(key)
|
||||
key_(std::move(key))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->label_->setText(translated_key);
|
||||
|
||||
Reference in New Issue
Block a user