From 1978c49bea5b439d993067c055cec47e70db8fd6 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 22:33:50 +0200 Subject: minor refactoring --- src/bincimap-updatecache.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/bincimap-updatecache.cc') 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", -- cgit v1.2.3