fix(sdk): Avoid narrowing conversion

This commit is contained in:
Dennis Klein 2021-06-23 19:06:59 +02:00
parent dde0f782de
commit 4d1866b60a
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ auto DDSTopology::GetTopoFile() const -> Path
return file;
}
auto DDSTopology::GetNumRequiredAgents() const -> int
auto DDSTopology::GetNumRequiredAgents() const -> std::size_t
{
return fImpl->fTopo.getRequiredNofAgents();
}

View File

@ -50,7 +50,7 @@ class DDSTopology
auto GetTopoFile() const -> Path;
/// @brief Get number of required agents for this topology
auto GetNumRequiredAgents() const -> int;
auto GetNumRequiredAgents() const -> std::size_t;
/// @brief Get list of tasks in this topology, optionally matching provided path
auto GetTasks(const std::string& = "") const -> std::vector<DDSTask>;