Skip to content

Commit

Permalink
Change lambda to function
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Apr 23, 2021
1 parent c6b9843 commit 9592c00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/deprecated_specs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ TEST(DeprecatedElements, CanEmitErrors)
EXPECT_EQ(sdf::ErrorCode::ELEMENT_DEPRECATED, errors[0].Code());
}

bool contains(const std::string &_a, const std::string &_b)
{
return _a.find(_b) != std::string::npos;
}

////////////////////////////////////////////////////
TEST(DeprecatedElements, CanEmitWarningWithErrorEnforcmentPolicy)
{
Expand All @@ -75,11 +80,6 @@ TEST(DeprecatedElements, CanEmitWarningWithErrorEnforcmentPolicy)
sdf::Console::Instance()->SetQuiet(false);
#endif

auto contains = [](const std::string &_a, const std::string &_b)
{
return _a.find(_b) != std::string::npos;
};

sdf::SDFPtr sdf(new sdf::SDF());
sdf::init(sdf);
auto elem = std::make_shared<sdf::Element>();
Expand Down

0 comments on commit 9592c00

Please sign in to comment.