diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-27 21:56:34 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-28 09:35:13 +0200 |
commit | 592665ce867d51ed3dcf95fd0f06fd22dc2804e8 (patch) | |
tree | 58384c93a2fce621e55feb3b8e5dff79e9cb9cc2 /vcl | |
parent | a9c637da431485f2e0e27045ccae10866c587538 (diff) |
tdf#130857 qt weld: Avoid unnecessary OUString copy
Change-Id: I36802f84070e579b714b696144536a2f130e2f7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174074
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/QtBuilder.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index b93e59c15a63..5d434dc58d71 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -183,10 +183,8 @@ void QtBuilder::setProperties(QObject* pObject, stringmap& rProps) { if (QMessageBox* pMessageBox = qobject_cast<QMessageBox*>(pObject)) { - for (auto const & [ Key, rValue ] : rProps) + for (auto const & [ rKey, rValue ] : rProps) { - OUString rKey = Key; - if (rKey == u"text") { pMessageBox->setText(toQString(rValue)); |