Skip to content

Commit 7ff3234

Browse files
committed
ClangTidy issue in lib/system/Route.hpp #1296
1 parent 5116b27 commit 7ff3234

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/system/Route.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ namespace MAT_NS_BEGIN {
102102
void operator()(TRealArgs&& ... args) const
103103
{
104104
for (IRoutePassThrough<TArgs...>* target : m_passthroughs) {
105-
if (!(*target)(std::forward<TRealArgs>(args) ...)) {
105+
if (!(*target)(args ...)) {
106106
return;
107107
}
108108
}
109109
if (m_target) {
110-
(*m_target)(std::forward<TRealArgs>(args) ...);
110+
(*m_target)(args ...);
111111
}
112112
}
113113

tests/unittests/RouteTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ TEST_F(RouteTests, SourceCallsSink)
117117
RouteSource<> source0;
118118
source0 >> sink0;
119119

120-
RouteSource<int, bool&, NonCopyableThing const&, Canary, std::vector<int>&&> source5;
120+
RouteSource<int, bool&, NonCopyableThing const&, Canary, std::vector<int>&> source5;
121121
source5 >> sink5;
122122

123123

@@ -137,10 +137,10 @@ TEST_F(RouteTests, SourceCallsSink)
137137
SetArgReferee<1>(true),
138138
InvokeArgument<3>()
139139
));
140-
source5(123, flag, thing, canary, std::move(data));
140+
source5(123, flag, thing, canary, data);
141141
EXPECT_THAT(flag, true);
142142
EXPECT_THAT(canary, Eq("alive"));
143-
EXPECT_THAT(data, IsEmpty());
143+
EXPECT_THAT(data, Not(IsEmpty()));
144144
}
145145

146146
TEST_F(RouteTests, PassThroughsAreInvokedInBetween)

0 commit comments

Comments
 (0)