Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 1e8b74a

Browse files
committed
Renamed resumefromsnapshottopicstate.h to .hpp for standardization (breakinggit status with edge version)
1 parent 84fef2e commit 1e8b74a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*
1919
*/
2020

21-
#ifndef RESUMEFROMSNAPSHOTTOPICSTATE_H
22-
#define RESUMEFROMSNAPSHOTTOPICSTATE_H
21+
#ifndef DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP
22+
#define DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP
2323

2424
#include <topicstate.hpp>
2525
#include "statesnapshot.hpp"
@@ -30,8 +30,14 @@ namespace DetectorGraph
3030
struct ResumeFromSnapshotTopicState : public DetectorGraph::TopicState
3131
{
3232
DetectorGraph::StateSnapshot snapshot;
33+
34+
ResumeFromSnapshotTopicState() : snapshot() {}
35+
ResumeFromSnapshotTopicState(const DetectorGraph::StateSnapshot& aSnapshot)
36+
: snapshot(aSnapshot)
37+
{
38+
}
3339
};
3440

3541
}
3642

37-
#endif // RESUMEFROMSNAPSHOTTOPICSTATE_H
43+
#endif // DETECTORGRAPH_INCLUDE_RESUMEFROMSNAPSHOTTOPICSTATE_HPP

0 commit comments

Comments
 (0)