Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1942 Fix clang-tidy warning by adding const
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Eltzschig <[email protected]>
  • Loading branch information
elfenpiff committed Mar 23, 2023
1 parent 73fc853 commit e32e5e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iceoryx_examples/iceoptions/iox_publisher_with_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main()

// we allow the subscribers to block the publisher if they want to ensure that no samples are lost
//! [too slow policy]
publisherOptions.subscriberTooSlowPolicy = iox::popo::ConsumerTooSlowPolicy::DISCARD_OLDEST_DATA;
publisherOptions.subscriberTooSlowPolicy = iox::popo::ConsumerTooSlowPolicy::WAIT_FOR_CONSUMER;
//! [too slow policy]

//! [create publisher with options]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ TYPED_TEST(SemanticString_test, InitializeWithValidStringValueWorks)
::testing::Test::RecordProperty("TEST_ID", "0100d764-628c-44ad-9af7-fe7a4540491a");
using SutType = typename TestFixture::SutType;

for (auto& value : TestValues<UserName>::VALID_VALUES)
for (const auto& value : TestValues<UserName>::VALID_VALUES)
{
auto sut = SutType::create(string<SutType::capacity()>(TruncateToCapacity, value.c_str()));

Expand Down

0 comments on commit e32e5e6

Please sign in to comment.