Skip to content

Commit

Permalink
Refs #20335: apply review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
  • Loading branch information
JLBuenoLopez committed Mar 26, 2024
1 parent b211b4f commit e49f544
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/cpp/fastdds/topic/DDSSQLFilter/DDSFilterFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static DDSFilterPredicate::OperationKind get_predicate_op(

struct ExpressionParsingState
{
const std::shared_ptr<xtypes::TypeObject>& type_object;
const std::shared_ptr<xtypes::TypeObject> type_object;
const IContentFilterFactory::ParameterSeq& filter_parameters;
DDSFilterExpression* filter;
};
Expand Down Expand Up @@ -538,7 +538,7 @@ ReturnCode_t DDSFilterFactory::create_content_filter(
{
DynamicType::_ref_type dyn_type = DynamicTypeBuilderFactory::get_instance()->create_type_w_type_object(
type_objects->complete_type_object)->build();
if (nullptr != dyn_type)
if (dyn_type)
{
DDSFilterExpression* expr = get_expression();
expr->set_type(dyn_type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

#include "DynamicTypeBuilderFactoryImpl.hpp"

#include <codecvt>
#include <ios>
#include <locale>
#include <sstream>
#include <string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ bool DynamicTypeBuilderImpl::equals(
}
}

if (verbatim_.size() == impl->verbatim_.size())
ret_value &= verbatim_.size() == impl->verbatim_.size();
if (ret_value)
{
for (size_t count {0}; ret_value && count < verbatim_.size(); ++count)
{
Expand Down

0 comments on commit e49f544

Please sign in to comment.