From 96acf26e9af6e5a96200b48fe08e54b6e2ea6566 Mon Sep 17 00:00:00 2001 From: Maxim Pimenov Date: Thu, 6 Jun 2019 17:02:30 +0300 Subject: [PATCH] Review fixes. --- qt/update_dialog.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 881e0a9497..f5b21af45b 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -227,16 +227,15 @@ namespace qt void UpdateDialog::OnLocaleTextChanged(QString const & text) { - string locale(text.toUtf8().constData()); - strings::Trim(locale); - m_locale = std::move(locale); + m_locale.assign(text.toUtf8().constData()); + strings::Trim(m_locale); RefillTree(); } void UpdateDialog::OnQueryTextChanged(QString const & text) { - m_query = string(text.toUtf8().constData()); + m_query.assign(text.toUtf8().constData()); RefillTree(); }