diff options
author | Eike Rathke <erack@redhat.com> | 2011-12-01 21:03:42 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-01 21:04:29 +0100 |
commit | 86adb5cacb4fe3e7fb869299447da5876f0da30d (patch) | |
tree | f7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /automation/source/testtool | |
parent | b20ea84970fb8b3068880a361822941c47f50edd (diff) |
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'automation/source/testtool')
-rw-r--r-- | automation/source/testtool/objtest.cxx | 4 | ||||
-rw-r--r-- | automation/source/testtool/objtest.hxx | 2 | ||||
-rw-r--r-- | automation/source/testtool/tcommuni.cxx | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx index af677dc5e43f..ff8745d6ab71 100644 --- a/automation/source/testtool/objtest.cxx +++ b/automation/source/testtool/objtest.cxx @@ -1063,12 +1063,12 @@ void TestToolObj::WaitForAnswer () } else { - Time Ende; + Time Ende( Time::SYSTEM ); Ende += pImpl->aServerTimeout; SvStream *pTemp = NULL; - while ( !bReturnOK && Ende > Time() ) + while ( !bReturnOK && Ende > Time( Time::SYSTEM ) ) { if ( pTemp ) { diff --git a/automation/source/testtool/objtest.hxx b/automation/source/testtool/objtest.hxx index afcb6b963b6d..3c7ab881b4ad 100644 --- a/automation/source/testtool/objtest.hxx +++ b/automation/source/testtool/objtest.hxx @@ -291,6 +291,8 @@ public: Environment *pChildEnv; // Environment Variables for child Process HttpRequest *pHttpRequest; // used for sending HTTP requests + + ImplTestToolObj() : aServerTimeout( Time::EMPTY ) {} }; diff --git a/automation/source/testtool/tcommuni.cxx b/automation/source/testtool/tcommuni.cxx index 2e0d7b8539ff..44dc5f2fec18 100644 --- a/automation/source/testtool/tcommuni.cxx +++ b/automation/source/testtool/tcommuni.cxx @@ -42,6 +42,7 @@ CommunicationManagerClientViaSocketTT::CommunicationManagerClientViaSocketTT() : CommunicationManagerClientViaSocket( sal_True ) +, aFirstRetryCall( Time::EMPTY ) , aAppPath() , aAppParams() , pProcess( NULL ) @@ -82,7 +83,7 @@ sal_Bool CommunicationManagerClientViaSocketTT::RetryConnect() if ( bSucc ) { - aFirstRetryCall = Time() + Time( 0, 1 ); + aFirstRetryCall = Time( Time::SYSTEM ) + Time( 0, 1 ); for ( int i = 10 ; i-- ; ) GetpApp()->Reschedule(); } @@ -92,7 +93,7 @@ sal_Bool CommunicationManagerClientViaSocketTT::RetryConnect() } else { - if ( aFirstRetryCall > Time() ) + if ( aFirstRetryCall > Time( Time::SYSTEM ) ) { Timer aWait; aWait.SetTimeout( 500 ); |