diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-11-28 21:14:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-28 23:12:35 +0100 |
commit | 5d9cddd24cca5fae70abf06663992d63a32c7cac (patch) | |
tree | d4fa0d2431e30471368623fd560ddc1b004dcefe /src/widgets/graphicsview/qsimplex_p.h | |
parent | 80cfb9b8f19338a32091d532d6314b63ea82bcab (diff) |
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 <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/graphicsview/qsimplex_p.h')
-rw-r--r-- | src/widgets/graphicsview/qsimplex_p.h | 4 |
1 files 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); |