diff options
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 09841e45befb..a67d2c47085c 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -70,15 +70,6 @@ static unsigned int getIntArg(const string & opt, } -struct RemoveTempRoots -{ - ~RemoveTempRoots() - { - removeTempRoots(); - } -}; - - void initDerivationsHelpers(); @@ -99,6 +90,12 @@ static void closeStore() } +RemoveTempRoots::~RemoveTempRoots() +{ + removeTempRoots(); +} + + /* Initialize and reorder arguments, then call the actual argument processor. */ static void initAndRun(int argc, char * * argv) |