Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Lysenko <lysenkoalexmail@gmail.com>2021-06-16 12:38:18 +0300
committerGitHub <noreply@github.com>2021-06-16 12:38:18 +0300
commit4715f63580f64d7baaba072f6c69632ccaa8a187 (patch)
tree201f42256d996e8aad25a70e929821d85e85011c /src/gui/folderstatusdelegate.cpp
parent09b538f4887d77685983dcb71d1ef6c1075a1b49 (diff)
Remove possible qt containers detach (#8727)
* Replaced obsolete foreach-loops with for-loops * Added a copy of queries into SqlDatabase::close * Used const reference to avoid unneeded copying * Fixed Qt containers possible detach within for-loop * Removed unneeded copies before for-loops
Diffstat (limited to 'src/gui/folderstatusdelegate.cpp')
-rw-r--r--src/gui/folderstatusdelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderstatusdelegate.cpp b/src/gui/folderstatusdelegate.cpp
index 2b652adf1..b8fdad152 100644
--- a/src/gui/folderstatusdelegate.cpp
+++ b/src/gui/folderstatusdelegate.cpp
@@ -277,7 +277,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
rect.width() - 2 * margin,
subFm.height());
- foreach (QString eText, texts) {
+ for (const auto &eText : texts) {
painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign,
subFm.elidedText(eText, Qt::ElideLeft, textRect.width()));
textRect.translate(0, textRect.height());