Skip to content

Commit

Permalink
pass by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
realHannes committed Jun 15, 2024
1 parent 07171a2 commit 899bf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/sparqlExpressions/NowDatetimeExpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NowDatetimeExpression : public SparqlExpression {
DateOrLargeYear date_;

public:
NowDatetimeExpression(std::string dateTimeFormat)
explicit NowDatetimeExpression(const std::string& dateTimeFormat)
: date_(DateOrLargeYear::parseXsdDatetime(dateTimeFormat)) {}

std::string getCacheKey(
Expand Down

0 comments on commit 899bf3d

Please sign in to comment.