pedantic fixes

This commit is contained in:
Allen Winter 2016-07-16 13:14:44 -04:00
parent 6161c50187
commit 31f067ede2
13 changed files with 19 additions and 20 deletions

View file

@ -18,4 +18,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "decorations_logging.h"
Q_LOGGING_CATEGORY(KWIN_DECORATIONS, "kwin_decorations", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWIN_DECORATIONS, "kwin_decorations", QtCriticalMsg)

View file

@ -48,7 +48,7 @@ enum class LoadEffectFlag {
Load = 1 << 0, ///< Effect should be loaded
CheckDefaultFunction = 1 << 2 ///< The Check Default Function needs to be invoked if the Effect provides it
};
Q_DECLARE_FLAGS(LoadEffectFlags, LoadEffectFlag);
Q_DECLARE_FLAGS(LoadEffectFlags, LoadEffectFlag)
/**
* @brief Interface to describe how an effect loader has to function.

View file

@ -18,4 +18,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include <kwineffects.h>
Q_LOGGING_CATEGORY(KWINEFFECTS, "kwineffects", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWINEFFECTS, "kwineffects", QtCriticalMsg)

View file

@ -42,7 +42,7 @@ class Compositing : public QObject
Q_PROPERTY(int glSwapStrategy READ glSwapStrategy WRITE setGlSwapStrategy NOTIFY glSwapStrategyChanged)
Q_PROPERTY(bool glColorCorrection READ glColorCorrection WRITE setGlColorCorrection NOTIFY glColorCorrectionChanged)
Q_PROPERTY(int compositingType READ compositingType WRITE setCompositingType NOTIFY compositingTypeChanged)
Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled NOTIFY compositingEnabledChanged);
Q_PROPERTY(bool compositingEnabled READ compositingEnabled WRITE setCompositingEnabled NOTIFY compositingEnabledChanged)
Q_PROPERTY(KWin::Compositing::OpenGLPlatformInterfaceModel *openGLPlatformInterfaceModel READ openGLPlatformInterfaceModel CONSTANT)
Q_PROPERTY(int openGLPlatformInterface READ openGLPlatformInterface WRITE setOpenGLPlatformInterface NOTIFY openGLPlatformInterfaceChanged)
public:

View file

@ -154,9 +154,9 @@ class EffectFilterModel : public QSortFilterProxyModel
* Default value is @c true.
**/
Q_PROPERTY(bool filterOutInternal MEMBER m_filterOutInternal NOTIFY filterOutInternalChanged)
Q_PROPERTY(QColor backgroundActiveColor READ backgroundActiveColor CONSTANT);
Q_PROPERTY(QColor backgroundNormalColor READ backgroundNormalColor CONSTANT);
Q_PROPERTY(QColor backgroundAlternateColor READ backgroundAlternateColor CONSTANT);
Q_PROPERTY(QColor backgroundActiveColor READ backgroundActiveColor CONSTANT)
Q_PROPERTY(QColor backgroundNormalColor READ backgroundNormalColor CONSTANT)
Q_PROPERTY(QColor backgroundAlternateColor READ backgroundAlternateColor CONSTANT)
Q_PROPERTY(QColor sectionColor READ sectionColor CONSTANT)
public:
EffectFilterModel(QObject *parent = 0);

View file

@ -39,7 +39,7 @@
#include "version.h"
K_PLUGIN_FACTORY_DECLARATION(KcmKWinScriptsFactory);
K_PLUGIN_FACTORY_DECLARATION(KcmKWinScriptsFactory)
Module::Module(QWidget *parent, const QVariantList &args) :
KCModule(parent, args),

View file

@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <sys/mman.h>
#include <unistd.h>
Q_LOGGING_CATEGORY(KWIN_XKB, "kwin_xkbcommon", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWIN_XKB, "kwin_xkbcommon", QtCriticalMsg)
namespace KWin
{

View file

@ -18,5 +18,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "libinput_logging.h"
Q_LOGGING_CATEGORY(KWIN_LIBINPUT, "kwin_libinput", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWIN_LIBINPUT, "kwin_libinput", QtCriticalMsg)

View file

@ -58,7 +58,7 @@ class QMatrix4x4;
* Logging category to be used inside the KWin effects.
* Do not use in this library.
**/
Q_DECLARE_LOGGING_CATEGORY(KWINEFFECTS);
Q_DECLARE_LOGGING_CATEGORY(KWINEFFECTS)
namespace KWayland {
namespace Server {

View file

@ -18,6 +18,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "logging_p.h"
Q_LOGGING_CATEGORY(LIBKWINEFFECTS, "libkwineffects", QtCriticalMsg);
Q_LOGGING_CATEGORY(LIBKWINGLUTILS, "libkwinglutils", QtCriticalMsg);
Q_LOGGING_CATEGORY(LIBKWINXRENDERUTILS, "libkwinxrenderutils", QtCriticalMsg);
Q_LOGGING_CATEGORY(LIBKWINEFFECTS, "libkwineffects", QtCriticalMsg)
Q_LOGGING_CATEGORY(LIBKWINGLUTILS, "libkwinglutils", QtCriticalMsg)
Q_LOGGING_CATEGORY(LIBKWINXRENDERUTILS, "libkwinxrenderutils", QtCriticalMsg)

View file

@ -23,8 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QLoggingCategory>
#include <QDebug>
Q_DECLARE_LOGGING_CATEGORY(LIBKWINEFFECTS);
Q_DECLARE_LOGGING_CATEGORY(LIBKWINGLUTILS);
Q_DECLARE_LOGGING_CATEGORY(LIBKWINXRENDERUTILS);
Q_DECLARE_LOGGING_CATEGORY(LIBKWINEFFECTS)
Q_DECLARE_LOGGING_CATEGORY(LIBKWINGLUTILS)
Q_DECLARE_LOGGING_CATEGORY(LIBKWINXRENDERUTILS)
#endif

View file

@ -18,4 +18,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "scripting_logging.h"
Q_LOGGING_CATEGORY(KWIN_SCRIPTING, "kwin_scripting", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWIN_SCRIPTING, "kwin_scripting", QtCriticalMsg)

View file

@ -18,4 +18,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "tabbox_logging.h"
Q_LOGGING_CATEGORY(KWIN_TABBOX, "kwin_tabbox", QtCriticalMsg);
Q_LOGGING_CATEGORY(KWIN_TABBOX, "kwin_tabbox", QtCriticalMsg)