diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index a8c9893527..f87338229f 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -285,6 +285,7 @@ void StartupFeedbackEffect::gotNewStartup(const KStartupInfoId& id, const KStart void StartupFeedbackEffect::gotRemoveStartup(const KStartupInfoId& id, const KStartupInfoData& data) { + Q_UNUSED( data ) m_startups.remove(id); if (m_startups.count() == 0) { m_currentStartup = KStartupInfoId(); // null @@ -394,7 +395,7 @@ QRect StartupFeedbackEffect::feedbackRect() const else xDiff = 32 + 7; int yDiff = xDiff; - GLTexture* texture; + GLTexture* texture = 0; int yOffset = 0; switch(m_type) { case BouncingFeedback: @@ -410,7 +411,9 @@ QRect StartupFeedbackEffect::feedbackRect() const break; } const QPoint cursorPos = effects->cursorPos() + QPoint(xDiff, yDiff + yOffset); - const QRect rect(cursorPos, texture->size()); + QRect rect; + if( texture ) + rect = QRect(cursorPos, texture->size()); return rect; }