Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions p4-fusion/commands/change_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct ChangeList
int filesDownloaded;
State state;

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

ChangeList(const ChangeList& other) = delete;
Expand Down
1 change: 1 addition & 0 deletions p4-fusion/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ int Main(int argc, char** argv)
// Truncate excess changes
if ((maxChanges > -1) && (changes.size() > maxChanges))
{
// We don't need to consider the case if this ever expands the vector.
changes.resize(maxChanges);
}
}
Expand Down
Loading