Skip to content

Commit

Permalink
Please sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Feb 11, 2025
1 parent 34d7179 commit f70a25e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parser/sparqlParser/SparqlQleverVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,13 +1218,13 @@ DatasetClause SparqlQleverVisitor::visit(Parser::UsingClauseContext* ctx) {
}

// ____________________________________________________________________________________
void Visitor::visit(Parser::PrologueContext* ctx) {
void Visitor::visit(const Parser::PrologueContext* ctx) {
for (auto* child : ctx->children) {
if (auto* baseDecl = dynamic_cast<Parser::BaseDeclContext*>(child)) {
visit(baseDecl);
} else {
auto* prefixDecl = dynamic_cast<Parser::PrefixDeclContext*>(child);
AD_CORRECTNESS_CHECK(prefixDecl);
AD_CORRECTNESS_CHECK(prefixDecl != nullptr);
visit(prefixDecl);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/sparqlParser/SparqlQleverVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class SparqlQleverVisitor {
ParsedQuery visit(Parser::QueryContext* ctx);

// ___________________________________________________________________________
void visit(Parser::PrologueContext* ctx);
void visit(const Parser::PrologueContext* ctx);

// ___________________________________________________________________________
void visit(Parser::BaseDeclContext* ctx);
Expand Down

0 comments on commit f70a25e

Please sign in to comment.