diff options
author | 2012-10-14 14:21:24 -0700 | |
---|---|---|
committer | 2012-10-20 18:08:29 +0100 | |
commit | 49241ddf5495e4336bba2501a34d97eebe4b9102 (patch) | |
tree | 25499a3d059536f6d926706dc15107367b22b132 | |
parent | 29357be79cb9dc2e9387e05be5d33b1ec8535e50 (diff) | |
download | paludis-49241ddf5495e4336bba2501a34d97eebe4b9102.tar.gz paludis-49241ddf5495e4336bba2501a34d97eebe4b9102.tar.xz |
cave: clean up print-unmanaged-files
- drop unnecessary usage of std namespace
- avoid unnecessary object creation
-rw-r--r-- | src/clients/cave/cmd_print_unmanaged_files.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_print_unmanaged_files.cc b/src/clients/cave/cmd_print_unmanaged_files.cc index 1762d5e11..1fe8772cd 100644 --- a/src/clients/cave/cmd_print_unmanaged_files.cc +++ b/src/clients/cave/cmd_print_unmanaged_files.cc @@ -85,7 +85,7 @@ namespace class CollectRecursiveDirectoryContents { public: - CollectRecursiveDirectoryContents(std::set<FSPath, FSPathComparator> * contents) + explicit CollectRecursiveDirectoryContents(std::set<FSPath, FSPathComparator> * contents) : _contents(contents) { } @@ -102,7 +102,7 @@ namespace try { if (entry->stat().is_directory()) - CollectRecursiveDirectoryContents(this->_contents)(*entry); + (*this)(*entry); else _contents->insert(*entry); } @@ -178,13 +178,13 @@ PrintUnmanagedFilesCommand::run(const std::shared_ptr<Environment> & env, if (! realpath.stat().is_directory()) { - std::cerr << path << " is not a directory" << std::endl; + cerr << path << " is not a directory" << endl; return EXIT_FAILURE; } if (! realpath.starts_with(sysroot)) { - std::cerr << path << " is not under " << sysroot << std::endl; + cerr << path << " is not under " << sysroot << endl; return EXIT_FAILURE; } |