From 6cfd370a1231b07bc1aab04a210e4b5e5187e821 Mon Sep 17 00:00:00 2001 From: hasherezade Date: Tue, 24 Sep 2024 17:16:49 -0700 Subject: [PATCH] [REFACT] Pass string by a reference --- hh_scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hh_scanner.cpp b/hh_scanner.cpp index 39dec5a..414b009 100644 --- a/hh_scanner.cpp +++ b/hh_scanner.cpp @@ -34,7 +34,7 @@ namespace files_util { return stream.str(); } - std::string make_dir_name(std::string baseDir, time_t timestamp) + std::string make_dir_name(const std::string &baseDir, time_t timestamp) { std::stringstream stream; if (baseDir.length() > 0) {