Initialize conflictSeverity variable.
[toast/confclerk.git] / src / mvc / delegate.cpp
index c693929d751c434e8ccc9cc61c51db6b20898a53..283f2c3bd8ab9b05ebc9e7680d7fbfafb5bd6daa 100644 (file)
@@ -65,6 +65,7 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons
         // determine severity of conflict
         Favourite eventTimeConflict = event->timeConflict(); // cache value as event->timeConflict is expensive
         enum ConflictSeverity {csNone, csWeak, csStrong} conflictSeverity;
+        conflictSeverity = csNone;
         switch (event->favourite()) {
             case Favourite_strong:
                 conflictSeverity = (eventTimeConflict == Favourite_strong) ? csStrong : csNone;