diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-12-12 18:45:33 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-12-12 18:45:33 (GMT) |
commit | 5d944642883e1f8951f1c2df5b7d72d06b5daee7 (patch) | |
tree | 9edbd66da62ba5017e399a20f3eebb87a063a5ea | |
parent | 7c5b4e84a2bf276de58db70f4996f5955e18057e (diff) | |
download | uscxml-5d944642883e1f8951f1c2df5b7d72d06b5daee7.zip uscxml-5d944642883e1f8951f1c2df5b7d72d06b5daee7.tar.gz uscxml-5d944642883e1f8951f1c2df5b7d72d06b5daee7.tar.bz2 |
Fixed MSVC builds
-rw-r--r-- | test/src/test-extensions.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/src/test-extensions.cpp b/test/src/test-extensions.cpp index fe12f5f..d73065c 100644 --- a/test/src/test-extensions.cpp +++ b/test/src/test-extensions.cpp @@ -53,7 +53,10 @@ std::shared_ptr<PausableDelayedEventQueue> nestedDelayQueue; */ class PausableDelayedEventQueue : public BasicDelayedEventQueue { public: - PausableDelayedEventQueue(DelayedEventQueueCallbacks* callbacks) : BasicDelayedEventQueue(callbacks) {} + PausableDelayedEventQueue(DelayedEventQueueCallbacks* callbacks) : BasicDelayedEventQueue(callbacks) { + _pausedAt.tv_sec = 0; + _pausedAt.tv_usec = 0; + } std::shared_ptr<DelayedEventQueueImpl> create(DelayedEventQueueCallbacks* callbacks) { // remember as nestedDelayQueue in global scope @@ -97,7 +100,8 @@ public: evutil_gettimeofday(&now, NULL); evutil_timersub(&now, &_pausedAt, &pausedFor); - _pausedAt = {0,0}; + _pausedAt.tv_sec = 0; + _pausedAt.tv_usec = 0; for(auto& callbackData : _callbackData) { // add the time we were paused to all due times @@ -121,7 +125,7 @@ public: } protected: - timeval _pausedAt = {0,0}; + timeval _pausedAt; }; bool testPausableEventQueue() { |