From 899bf3db5c12f863256e9988e991d309685a78f6 Mon Sep 17 00:00:00 2001 From: realHannes Date: Sat, 15 Jun 2024 14:29:04 +0200 Subject: [PATCH] pass by reference --- src/engine/sparqlExpressions/NowDatetimeExpression.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(