summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/dirname.cpp2
-rw-r--r--src/utils/dirname.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/dirname.cpp b/src/utils/dirname.cpp
index 71c9c38..a304117 100644
--- a/src/utils/dirname.cpp
+++ b/src/utils/dirname.cpp
@@ -2,7 +2,7 @@
namespace utils
{
- std::string dirname(const std::string filename)
+ std::string dirname(const std::string& filename)
{
if (filename.empty())
return "./";
diff --git a/src/utils/dirname.hpp b/src/utils/dirname.hpp
index c1df81b..73e1b57 100644
--- a/src/utils/dirname.hpp
+++ b/src/utils/dirname.hpp
@@ -2,5 +2,5 @@
namespace utils
{
-std::string dirname(const std::string filename);
+std::string dirname(const std::string& filename);
}