[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/timer
From:       Laurent Montel <montel () kde ! org>
Date:       2008-08-14 7:02:25
Message-ID: 1218697345.701641.24339.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 846787 by mlaurent:

Minor optimization


 M  +2 -1      timer.cpp  


--- trunk/KDE/kdeplasma-addons/applets/timer/timer.cpp #846786:846787
@@ -230,7 +230,8 @@
     QAction *action = 0;
 
     //FIXME: Probably here I have a small memory leak
-    for (QStringList::Iterator it = m_predefinedTimers.begin(); it != \
m_predefinedTimers.end(); ++it) { +    const QStringList::Iterator end =  \
m_predefinedTimers.end(); +    for (QStringList::Iterator it = \
m_predefinedTimers.begin(); it != end; ++it) {  action = new QAction(*it, this);
         action->setProperty("seconds", QTime(0, 0, 0).secsTo(QTime::fromString(*it, \
CustomTimeEditor::TIME_FORMAT)));  action->setEnabled(!m_running);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic