Skip to content

Commit

Permalink
Refs #21817: Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Carlosespicur <carlosespicur@proton.me>
  • Loading branch information
Carlosespicur committed Nov 15, 2024
1 parent ac92be7 commit f74e826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/cpp/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5347,7 +5347,7 @@ EntityId Database::get_endpoint_topic_id(
const EntityId& endpoint_id)
{
std::shared_lock<std::shared_timed_mutex> lock(mutex_);
std::shared_ptr<const Entity> endpoint = get_entity_nts(endpoint_id);
std::shared_ptr<const Entity> endpoint = get_entity_nts(endpoint_id);

// Check if the entity is a valid endpoint
if (endpoint->kind != EntityKind::DATAWRITER && endpoint->kind != EntityKind::DATAREADER)
Expand All @@ -5364,7 +5364,7 @@ EntityId Database::get_domain_id(
std::shared_lock<std::shared_timed_mutex> lock(mutex_);
std::shared_ptr<const Entity> entity = get_entity_nts(entity_id);

switch(entity->kind)
switch (entity->kind)
{
case EntityKind::DOMAIN:
{
Expand All @@ -5390,6 +5390,7 @@ EntityId Database::get_domain_id(
}

}

void Database::check_entity_kinds(
EntityKind kind,
const std::vector<EntityId>& entity_ids,
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/database/database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ class Database
*/
EntityId get_domain_id(
const EntityId& entity_id);

/**
* @brief Check if the entities passed correspond to the specified entity kind.
*
Expand Down

0 comments on commit f74e826

Please sign in to comment.