[PATCH 14/34] kernelshark: Fix range-loop-reference Clazy warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Benjamin ROBIN <dev@xxxxxxxxxxxxx>
---
 src/KsUtils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/KsUtils.cpp b/src/KsUtils.cpp
index fc1fc52..83f8f2e 100644
--- a/src/KsUtils.cpp
+++ b/src/KsUtils.cpp
@@ -530,7 +530,7 @@ QVector<int> parseIdList(QString v_str)
 	QStringList list = v_str.split(",", KS_SPLIT_SkipEmptyParts);
 	QVector<int> v;
 
-	for (auto item: list) {
+	for (const auto &item: list) {
 		int i = item.indexOf('-');
 		if (i > 0) {
 			/* This item is an interval. */
-- 
2.43.0





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux