Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
- drop static cast

Co-authored-by: Lin Zhihao <[email protected]>
  • Loading branch information
davidlion and LinZhihao-723 authored Apr 25, 2024
1 parent 33647d0 commit 2fd3f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/ffi_go/search/wildcard_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ extern "C" auto wildcard_query_clean(StringView query, void** ptr) -> StringView

extern "C" auto wildcard_query_match(StringView target, WildcardQueryView query) -> int {
return static_cast<int>(wildcard_match_unsafe(
std::string_view{target.m_data, target.m_size},
std::string_view{query.m_query.m_data, query.m_query.m_size},
static_cast<bool>(query.m_case_sensitive)
{target.m_data, target.m_size},
{query.m_query.m_data, query.m_query.m_size},
query.m_case_sensitive
));
}
} // namespace ffi_go::search

0 comments on commit 2fd3f15

Please sign in to comment.