Add operator* for Time and int.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Sep 2022 23:03:43 +0000 (01:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Oct 2022 15:53:24 +0000 (17:53 +0200)
src/lib/dcpomatic_time.h

index 9e7191b1eb7dc239a890aebc2d6efa5fe81d3f75..583ff3a463c5961225071540870f0a6d60769eaf 100644 (file)
@@ -152,6 +152,10 @@ public:
                return *this;
        }
 
+       Time<S, O> operator* (int o) const {
+               return Time<S, O> (_t * o);
+       }
+
        Time<S, O> operator/ (int o) const {
                return Time<S, O> (_t / o);
        }