Skip to content

Commit

Permalink
[REFACT] Pass string by a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 25, 2024
1 parent a5b3582 commit 6cfd370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hh_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6cfd370

Please sign in to comment.