about summary refs log tree commit diff
path: root/third_party/nix/src/nix-env/nix-env.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-24T22·06+0100
committerVincent Ambo <tazjin@google.com>2020-05-24T22·19+0100
commitf5aaa12f1d0f59c9953692a5df1959b82fcbb88a (patch)
tree93fef636c75ae9d4cb21e0dbc9311cb695d8eb9a /third_party/nix/src/nix-env/nix-env.cc
parent838f86b0fd880b26539664140f04e5d16669dad8 (diff)
style(3p/nix): Remove 'using std::*' from xml-writer.hh r/841
See previous commit for more details on why.
Diffstat (limited to 'third_party/nix/src/nix-env/nix-env.cc')
-rw-r--r--third_party/nix/src/nix-env/nix-env.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix-env/nix-env.cc b/third_party/nix/src/nix-env/nix-env.cc
index 794250e603..e827f31e5d 100644
--- a/third_party/nix/src/nix-env/nix-env.cc
+++ b/third_party/nix/src/nix-env/nix-env.cc
@@ -247,7 +247,7 @@ static DrvInfos filterBySelector(EvalState& state, const DrvInfos& allElems,
        arbitrarily pick the first one. */
     if (newestOnly) {
       /* Map from package names to derivations. */
-      typedef map<std::string, std::pair<DrvInfo, unsigned int> > Newest;
+      typedef std::map<std::string, std::pair<DrvInfo, unsigned int> > Newest;
       Newest newest;
       StringSet multiple;
 
@@ -1367,7 +1367,7 @@ static void opDeleteGenerations(Globals& globals, Strings opFlags,
       throw Error(format("invalid number of generations ‘%1%’") %
                   opArgs.front());
     }
-    string str_max = std::string(opArgs.front(), 1, opArgs.front().size());
+    std::string str_max = std::string(opArgs.front(), 1, opArgs.front().size());
     int max;
     if (!string2Int(str_max, max) || max == 0) {
       throw Error(format("invalid number of generations to keep ‘%1%’") %