From c0a47ae1dd3f7ab4bae1d38ee852e865883aa849 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Sat, 30 Apr 2011 13:17:26 +0200 Subject: [PATCH] Warning-- --- effects/startupfeedback/startupfeedback.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }