should be const

This commit is contained in:
Antonis Tsiapaliokas 2013-09-10 10:46:14 +03:00 committed by Martin Gräßlin
parent 11c59b7abe
commit 14b66445e3
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ Compositing::Compositing(QObject *parent)
{
}
bool Compositing::OpenGLIsUnsafe()
bool Compositing::OpenGLIsUnsafe() const
{
KConfigGroup kwinConfig(KSharedConfig::openConfig("kwinrc"), "Compositing");
return kwinConfig.readEntry("OpenGLIsUnsafe", true);

View file

@ -36,7 +36,7 @@ class Compositing : public QObject
public:
explicit Compositing(QObject *parent = 0);
Q_INVOKABLE bool OpenGLIsUnsafe();
Q_INVOKABLE bool OpenGLIsUnsafe() const;
Q_INVOKABLE bool OpenGLIsBroken();
private: