Skip to content

Commit 7a35fea

Browse files
committed
fix workflows
1 parent 1959de2 commit 7a35fea

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/MicroOcpp/Core/Time.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Timestamp::Timestamp() : MemoryManaged("Timestamp") {
3636

3737
}
3838

39+
Timestamp::Timestamp(const Timestamp& other) {
40+
*this = other;
41+
updateMemoryTag(other.getMemoryTag());
42+
}
43+
3944
bool Timestamp::isUnixTime() const {
4045
return time >= MO_MIN_TIME && time <= MO_MAX_TIME;
4146
}

src/MicroOcpp/Core/Time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Timestamp : public MemoryManaged {
4545
public:
4646

4747
Timestamp();
48-
Timestamp(const Timestamp& other) = default;
48+
Timestamp(const Timestamp& other);
4949
MicroOcpp::Timestamp& operator=(const Timestamp& other) = default;
5050

5151
bool isUnixTime() const;

0 commit comments

Comments
 (0)