aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-03-17 09:26:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-17 09:26:39 +0200
commite9cf760289b47767fdacc6a98fb2040d35a63d49 (patch)
treedc70469a871a6fe32486c9048ef17983bedbc751
parent8e2422a0022f5bd8e7d1fe8d1ca7b259451869ea (diff)
Improve invalid_path constructor
-rw-r--r--libbutl/path.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbutl/path.hxx b/libbutl/path.hxx
index fae145e..b3be75a 100644
--- a/libbutl/path.hxx
+++ b/libbutl/path.hxx
@@ -59,7 +59,7 @@ namespace butl
string_type path;
explicit
- invalid_basic_path (const string_type& p): path (p) {}
+ invalid_basic_path (string_type p): path (std::move (p)) {}
explicit
invalid_basic_path (const C* p): path (p) {}
invalid_basic_path (const C* p, size_type n): path (p, n) {}