Skip to content

Commit

Permalink
CI fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Nov 20, 2024
1 parent 6d29236 commit 1d6e437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/src/Slice/MetadataValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Slice::MetadataValidator::isMetadataValid(const MetadataPtr& metadata, const Syn
if (isTypeContext)
{
string msg = '\'' + directive + "' metadata can only be applied to definitions and declarations" +
", it cannot be applied to type references";
", it cannot be applied to type references";
p->unit()->warning(metadata->file(), metadata->line(), InvalidMetadata, msg);
isValid = false;
}
Expand Down Expand Up @@ -365,7 +365,7 @@ Slice::MetadataValidator::isMetadataValid(const MetadataPtr& metadata, const Syn
if (!validOn.empty() && appliedTo) // 'appliedTo' will be null if we already found a problem and should stop.
{
auto appliedToPtr = appliedTo.get();
auto typeComparator = [&](reference_wrapper<const type_info> t) { return t == typeid(*appliedToPtr); };
auto typeComparator = [&](reference_wrapper<const type_info> t) { return t.get() == typeid(*appliedToPtr); };
if (std::find_if(validOn.begin(), validOn.end(), typeComparator) == validOn.end())
{
string message = misappliedMetadataMessage(metadata, appliedTo);
Expand Down
1 change: 0 additions & 1 deletion cpp/src/slice2cpp/CPlusPlusUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ namespace
for (const auto& meta : metadata)
{
string_view directive = meta->directive();
string_view arguments = meta->arguments();
if (directive == "cpp:view-type")
{
return true;
Expand Down

0 comments on commit 1d6e437

Please sign in to comment.