Skip to content

Commit 012c8f1

Browse files
Add default ctor in ChangeList class
We need a default ctor in this class to allow writing - https://github.com/salesforce/p4-fusion/blob/e21ee286d973c534d506349d5dc7e3638e671b56/p4-fusion/main.cc#L297
1 parent e21ee28 commit 012c8f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p4-fusion/commands/change_list.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct ChangeList
3535
int filesDownloaded;
3636
State state;
3737

38+
ChangeList() = default; // Defaulted so that vector<ChangeList>::resize() can be used.
3839
ChangeList(const std::string& number, const std::string& description, const std::string& user, const int64_t& timestamp);
3940

4041
ChangeList(const ChangeList& other) = delete;

0 commit comments

Comments
 (0)