Skip to content

Commit

Permalink
Fix cpplint errors (#69)
Browse files Browse the repository at this point in the history
* Use static_cast instead of C-style cast

Fixes cpplint error.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Update NOLINT category

Relates to ament/ament_lint#324

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored Jan 12, 2022
1 parent 2e32840 commit a5ba188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef RMW_CONNEXTDDS__DDS_API_RTIME_HPP_
#define RMW_CONNEXTDDS__DDS_API_RTIME_HPP_

#include "rti_me_c.h" // NOLINT(build/include)
#include "rti_me_c.h" // NOLINT(build/include_subdir)
#include "disc_dpde/disc_dpde_discovery_plugin.h"
#include "wh_sm/wh_sm_history.h"
#include "rh_sm/rh_sm_history.h"
Expand Down
2 changes: 1 addition & 1 deletion rmw_connextdds_common/src/rtime/dds_api_rtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ rmw_connextdds_get_qos_policies(
size_t max_samples = RMW_CONNEXT_LIMIT_SAMPLES_MAX;

if (DDS_LENGTH_UNLIMITED != history->depth &&
(size_t)history->depth > max_samples)
static_cast<size_t>(history->depth) > max_samples)
{
max_samples = history->depth;
}
Expand Down

0 comments on commit a5ba188

Please sign in to comment.