From 3d3eaa45c9a31c757d7eaef3ecb4bc90615feb23 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 16 Oct 2016 21:22:06 +0000 Subject: [PATCH] various cleanups Signed-off-by: Ivailo Monev --- src/opengl/qgl.cpp | 1 - src/opengl/qglframebufferobject.cpp | 1 - src/opengl/qglpixelbuffer_x11.cpp | 2 +- src/plugins/sqldrivers/mysql/qsql_mysql.cpp | 4 ++-- src/tools/designer/qdesigner.cpp | 2 +- src/uitools/quiloader.cpp | 7 +++---- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 2823cee66..d7dec768e 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -84,7 +84,6 @@ #include #include "qcolormap.h" #include "qfile.h" -#include "qlibrary.h" #include #if defined(QT_OPENGL_ES) && !defined(QT_NO_EGL) diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index 235e964f6..afa368cfb 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -55,7 +55,6 @@ #endif #include -#include #include QT_BEGIN_NAMESPACE diff --git a/src/opengl/qglpixelbuffer_x11.cpp b/src/opengl/qglpixelbuffer_x11.cpp index 14ce44362..3fb4db8fa 100644 --- a/src/opengl/qglpixelbuffer_x11.cpp +++ b/src/opengl/qglpixelbuffer_x11.cpp @@ -38,7 +38,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ -#include + #include #include #include diff --git a/src/plugins/sqldrivers/mysql/qsql_mysql.cpp b/src/plugins/sqldrivers/mysql/qsql_mysql.cpp index 63cc67be3..728c223e8 100644 --- a/src/plugins/sqldrivers/mysql/qsql_mysql.cpp +++ b/src/plugins/sqldrivers/mysql/qsql_mysql.cpp @@ -1089,7 +1089,7 @@ bool QMYSQLResult::exec() static int qMySqlConnectionCount = 0; static bool qMySqlInitHandledByUser = false; -static void qLibraryInit() +static inline void qLibraryInit() { #ifndef Q_NO_MYSQL_EMBEDDED # if MYSQL_VERSION_ID >= 40000 @@ -1107,7 +1107,7 @@ static void qLibraryInit() #endif // Q_NO_MYSQL_EMBEDDED } -static void qLibraryEnd() +static inline void qLibraryEnd() { #ifndef Q_NO_MYSQL_EMBEDDED # if MYSQL_VERSION_ID > 40000 diff --git a/src/tools/designer/qdesigner.cpp b/src/tools/designer/qdesigner.cpp index 9700987c5..bfa17b10e 100644 --- a/src/tools/designer/qdesigner.cpp +++ b/src/tools/designer/qdesigner.cpp @@ -246,7 +246,7 @@ bool QDesigner::event(QEvent *ev) m_suppressNewFormShow = false; return true; case QEvent::Close: { - bool eaten = true + bool eaten = true; QCloseEvent *closeEvent = static_cast(ev); closeEvent->setAccepted(m_workbench->handleClose()); if (closeEvent->isAccepted()) { diff --git a/src/uitools/quiloader.cpp b/src/uitools/quiloader.cpp index 46623f774..6b31f9470 100644 --- a/src/uitools/quiloader.cpp +++ b/src/uitools/quiloader.cpp @@ -49,15 +49,14 @@ #include #include -#include +#include +#include +#include #include #include #include -#include -#include #include #include -#include #include #include #include -- 2.11.0