summaryrefslogtreecommitdiff
path: root/src/history/autosaver.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-25 19:48:41 +0200
commit14664e54b1a2dbe9c06f474a0918a262dba04e20 (patch)
tree2f48b455d90b5a966045f8ba6388ac8c0620259f /src/history/autosaver.cpp
parentLast SSL fixes (diff)
downloadrekonq-14664e54b1a2dbe9c06f474a0918a262dba04e20.tar.xz
clean up
- QL1S - one stupid kDebug less - codingstyle
Diffstat (limited to 'src/history/autosaver.cpp')
-rw-r--r--src/history/autosaver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/history/autosaver.cpp b/src/history/autosaver.cpp
index c490ac46..bb2a7683 100644
--- a/src/history/autosaver.cpp
+++ b/src/history/autosaver.cpp
@@ -50,7 +50,7 @@ AutoSaver::AutoSaver(QObject *parent)
AutoSaver::~AutoSaver()
{
- if(m_timer->isActive())
+ if (m_timer->isActive())
kDebug() << "AutoSaver: still active when destroyed, changes not saved.";
delete m_firstChange;
@@ -60,17 +60,17 @@ AutoSaver::~AutoSaver()
void AutoSaver::saveIfNeccessary()
{
- if(m_timer->isActive())
+ if (m_timer->isActive())
save();
}
void AutoSaver::changeOccurred()
{
- if(m_firstChange->isNull())
+ if (m_firstChange->isNull())
m_firstChange->start();
- if(m_firstChange->elapsed() > MAX_TIME_LIMIT)
+ if (m_firstChange->elapsed() > MAX_TIME_LIMIT)
save();
else
m_timer->start(AUTOSAVE_TIME, this);
@@ -79,7 +79,7 @@ void AutoSaver::changeOccurred()
void AutoSaver::timerEvent(QTimerEvent *event)
{
- if(event->timerId() == m_timer->timerId())
+ if (event->timerId() == m_timer->timerId())
save();
else
QObject::timerEvent(event);