diff --git a/src/engine/sparqlExpressions/NowDatetimeExpression.h b/src/engine/sparqlExpressions/NowDatetimeExpression.h index debb07d01a..b0ca88dcc2 100644 --- a/src/engine/sparqlExpressions/NowDatetimeExpression.h +++ b/src/engine/sparqlExpressions/NowDatetimeExpression.h @@ -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(