Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarTime.cpp
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2023-06-26 11:48:27 -0700
committerLDA <lda@ldasuku.net>2023-06-26 11:58:35 -0700
commitc9e889723b7af832322d178975e6e440d6cd3ae5 (patch)
treea8429c30ecf46ed1388df13b614141e73973cd9f /source/core/StarTime.cpp
parent4585c9cafa87cad6b54397af7e9375cc31b72f89 (diff)
resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
Diffstat (limited to 'source/core/StarTime.cpp')
-rw-r--r--source/core/StarTime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/StarTime.cpp b/source/core/StarTime.cpp
index b8d01a4..4d0b516 100644
--- a/source/core/StarTime.cpp
+++ b/source/core/StarTime.cpp
@@ -177,6 +177,11 @@ Timer::Timer() : Clock(false) {
Timer::Timer(Timer const& timer)
: Clock(timer) {}
+Timer& Timer::operator=(Timer const& timer) {
+ Clock::operator=(timer);
+ return *this;
+}
+
void Timer::restart(double timeLeft) {
Clock::setTime(-timeLeft);
Clock::start();