diff mbox series

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

Message ID 20240114171723.14092-18-dev@benjarobin.fr (mailing list archive)
State Accepted
Commit fa9b84c385f163f5686caa641e768d486ca73230
Headers show
Series Fix kernelshark issues introduced by the migration to Qt6 | expand

Commit Message

Benjamin ROBIN Jan. 14, 2024, 5:17 p.m. UTC
Signed-off-by: Benjamin ROBIN <dev@benjarobin.fr>
---
 src/KsModels.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;