about summary refs log tree commit diff
path: root/src/nix-store/nix-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-04T13·48+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-04T13·48+0100
commitfa7cd5369b7d9f947b0b26ca681e94b81068a3ef (patch)
treec31cd0f58e516929a21000de609958b73b7059c7 /src/nix-store/nix-store.cc
parentc10c61449f954702ae6d8092120321744acd82ff (diff)
StoreAPI -> Store
Calling a class an API is a bit redundant...
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r--src/nix-store/nix-store.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index d5242492e4..b384ad2ab0 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -37,7 +37,7 @@ static Path gcRoot;
 static int rootNr = 0;
 static bool indirectRoot = false;
 static bool noOutput = false;
-static std::shared_ptr<StoreAPI> store;
+static std::shared_ptr<Store> store;
 
 
 LocalStore & ensureLocalStore()
@@ -84,7 +84,7 @@ static PathSet realisePath(Path path, bool build = true)
                 Path rootName = gcRoot;
                 if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
                 if (i->first != "out") rootName += "-" + i->first;
-                outPath = addPermRoot(ref<StoreAPI>(store), outPath, rootName, indirectRoot);
+                outPath = addPermRoot(ref<Store>(store), outPath, rootName, indirectRoot);
             }
             outputs.insert(outPath);
         }
@@ -100,7 +100,7 @@ static PathSet realisePath(Path path, bool build = true)
             Path rootName = gcRoot;
             rootNr++;
             if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
-            path = addPermRoot(ref<StoreAPI>(store), path, rootName, indirectRoot);
+            path = addPermRoot(ref<Store>(store), path, rootName, indirectRoot);
         }
         return singleton<PathSet>(path);
     }
@@ -142,7 +142,7 @@ static void opRealise(Strings opFlags, Strings opArgs)
     }
 
     if (settings.get("print-missing", true))
-        printMissing(ref<StoreAPI>(store), willBuild, willSubstitute, unknown, downloadSize, narSize);
+        printMissing(ref<Store>(store), willBuild, willSubstitute, unknown, downloadSize, narSize);
 
     if (dryRun) return;