[PATCH 17/34] kernelshark: Return by reference the list of header in KsModels

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

 



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

diff --git a/src/KsModels.hpp b/src/KsModels.hpp
index e113cf5..b95c6c1 100644
--- a/src/KsModels.hpp
+++ b/src/KsModels.hpp
@@ -81,7 +81,7 @@ public:
 	void update(KsDataStore *data);
 
 	/** Get the list of column's headers. */
-	QStringList header() const {return _header;}
+	const QStringList& header() const {return _header;}
 
 	QString getValueStr(int column, int row) const;
 
-- 
2.43.0





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

  Powered by Linux