about summary refs log tree commit diff
path: root/src/libexpr/names.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-19T14·32+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-19T14·32+0200
commit795d9b866881871419651081eb112f23b2f5bff5 (patch)
treee51077f7170bb04bb003fdadcd0e462bc52d9776 /src/libexpr/names.hh
parent19c278de89fa60844fa1ea2b3c2abfa639f75b39 (diff)
parentc935e8eeaf3ef5f49f66468ba551fd016fd76aa0 (diff)
Merge branch 'regex' of https://github.com/groxxda/nix
Diffstat (limited to 'src/libexpr/names.hh')
-rw-r--r--src/libexpr/names.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/names.hh b/src/libexpr/names.hh
index 4b3dcddf70d7..9667fc96fd0f 100644
--- a/src/libexpr/names.hh
+++ b/src/libexpr/names.hh
@@ -3,7 +3,7 @@
 #include <memory>
 
 #include "types.hh"
-#include "regex.hh"
+#include <regex>
 
 namespace nix {
 
@@ -19,7 +19,7 @@ struct DrvName
     bool matches(DrvName & n);
 
 private:
-    std::shared_ptr<Regex> regex;
+    std::unique_ptr<std::regex> regex;
 };
 
 typedef list<DrvName> DrvNames;