summaryrefslogtreecommitdiff
path: root/src/bincimap-updatecache.cc
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-07 22:33:50 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-08 11:35:51 +0200
commit1978c49bea5b439d993067c055cec47e70db8fd6 (patch)
tree255caea96a13f95564e6b631be9a4ac55ce33cd9 /src/bincimap-updatecache.cc
parent3b1278f5459514a6d6364f068ff97b8a0432057b (diff)
minor refactoring
Diffstat (limited to 'src/bincimap-updatecache.cc')
-rw-r--r--src/bincimap-updatecache.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bincimap-updatecache.cc b/src/bincimap-updatecache.cc
index b89abdf..b1cf7b3 100644
--- a/src/bincimap-updatecache.cc
+++ b/src/bincimap-updatecache.cc
@@ -1,16 +1,16 @@
-/** --------------------------------------------------------------------
+/**
* @file bincimap-updatecache.cc
* @brief Implementation of the bincimap-updatecache tool.
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
+ */
+
#include "depot.h"
#include "mailbox.h"
#include "maildir.h"
#include "session.h"
-using namespace ::Binc;
-using namespace ::std;
+using namespace Binc;
int main(int argc, char *argv[])
{
@@ -27,11 +27,11 @@ int main(int argc, char *argv[])
depotfactory.assign(new IMAPdirDepot());
depotfactory.assign(new MaildirPPDepot());
- string depottype = session.getEnv("DEPOT");
+ std::string depottype = session.getEnv("DEPOT");
if (depottype == "") depottype = "Maildir++";
Depot *depot;
- if ((depot = depotfactory.get(depottype)) == 0) {
+ if ((depot = depotfactory.get(depottype)) == nullptr) {
fprintf(stderr,
"Found no Depot for \"%s\". Please check "
" your configurations file under the Mailbox section.\n",