Skip to content

Commit 68f5ecc

Browse files
committed
Style was fixed.
Signed-off-by: olesya <bks-ol@mail.ru>
1 parent 07f410e commit 68f5ecc

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

rclcpp/test/rclcpp/test_create_custom_subscription.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2025 Open Source Robotics Foundation, Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include <gtest/gtest.h>
216

317
#include <chrono>
@@ -39,9 +53,8 @@ class CustomSubscription : public rclcpp::Subscription<
3953
MessageT, AllocatorT, SubscribedT, ROSMessageT, MessageMemoryStrategyT>
4054
{
4155
public:
42-
4356
template <typename... Args>
44-
CustomSubscription(Args &&...args) : rclcpp::Subscription<
57+
explicit CustomSubscription(Args &&...args) : rclcpp::Subscription<
4558
MessageT, AllocatorT, SubscribedT, ROSMessageT, MessageMemoryStrategyT>(
4659
std::forward<Args>(args)...) {}
4760
};
@@ -69,4 +82,4 @@ TEST_F(TestCreateSubscription, create) {
6982
ASSERT_NE(nullptr, subscription);
7083
EXPECT_STREQ("/ns/topic_name", subscription->get_topic_name());
7184
static_assert(std::is_same_v<std::decay_t<decltype(*subscription.get())>, SubscriptionT>);
72-
}
85+
}

0 commit comments

Comments
 (0)