summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-03 12:09:02 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:33 +0100
commit766b6ccf46ccfefeddc516c25b2a7bea3144dc58 (patch)
treef4f8ce43ca2cccf087b5c0c9d77f0c62d19cae83 /vcl
parentc209ac1c79da10c75739f6ed507acbd9a4acf8b1 (diff)
small cleanup in timer.cxx
Change-Id: Ia47c1775bc13596bf854475dd786c50c9c9b6e25
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/timer.cxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx
index dab9927bbe25..512386a12c8a 100644
--- a/vcl/source/app/timer.cxx
+++ b/vcl/source/app/timer.cxx
@@ -191,22 +191,21 @@ void Timer::ImplTimerCallbackProc()
pSVData->mbNotAllTimerCalled = sal_False;
}
-Timer::Timer()
+Timer::Timer():
+ mpTimerData(NULL),
+ mnTimeout(1),
+ mbActive(false),
+ mbAuto(false)
{
- mpTimerData = NULL;
- mnTimeout = 1;
- mbAuto = false;
- mbActive = false;
}
-Timer::Timer( const Timer& rTimer )
+Timer::Timer( const Timer& rTimer ):
+ mpTimerData(NULL),
+ mnTimeout(rTimer.mnTimeout),
+ mbActive(false),
+ mbAuto(false),
+ maTimeoutHdl(rTimer.maTimeoutHdl)
{
- mpTimerData = NULL;
- mnTimeout = rTimer.mnTimeout;
- mbAuto = false;
- mbActive = false;
- maTimeoutHdl = rTimer.maTimeoutHdl;
-
if ( rTimer.IsActive() )
Start();
}
@@ -217,7 +216,7 @@ Timer::~Timer()
{
mpTimerData->mbDelete = true;
mpTimerData->mpTimer = NULL;
- }
+ }
}
void Timer::Timeout()
@@ -256,7 +255,7 @@ void Timer::Start()
}
// insert timer and start
- mpTimerData = new ImplTimerData;
+ mpTimerData = new ImplTimerData;
mpTimerData->mpTimer = this;
mpTimerData->mnUpdateTime = Time::GetSystemTicks();
mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;