From 5d9cddd24cca5fae70abf06663992d63a32c7cac Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 28 Nov 2013 21:14:30 +0100 Subject: [PATCH] QSimplex: API cleanup [3/3]: add inline keyword The functions valueAt() and setValueAdd() were defined inline out-of-body, but not declared inline. Fix by adding inline to the declarations, too. This has in the past caused warnings on exported classes on MinGW, and it's simply wrong, too. Change-Id: I5922cb9ca0c5ee37408f553f0aad0e3264853827 Reviewed-by: Giuseppe D'Angelo --- src/widgets/graphicsview/qsimplex_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/graphicsview/qsimplex_p.h b/src/widgets/graphicsview/qsimplex_p.h index 156aa30397..dfbca409b9 100644 --- a/src/widgets/graphicsview/qsimplex_p.h +++ b/src/widgets/graphicsview/qsimplex_p.h @@ -164,8 +164,8 @@ public: private: // Matrix handling - qreal valueAt(int row, int column); - void setValueAt(int row, int column, qreal value); + inline qreal valueAt(int row, int column); + inline void setValueAt(int row, int column, qreal value); void clearRow(int rowIndex); void clearColumns(int first, int last); void combineRows(int toIndex, int fromIndex, qreal factor);