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/greeting.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/greeting.cc') diff --git a/src/greeting.cc b/src/greeting.cc index 95e93c0..d96ab96 100644 --- a/src/greeting.cc +++ b/src/greeting.cc @@ -1,9 +1,10 @@ -/** -------------------------------------------------------------------- +/** * @file greeting.cc * @brief Implementation of the inital greeting. * @author Andreas Aardal Hanssen * @date 2002-2005 - * ----------------------------------------------------------------- **/ + */ + #include "globals.h" #include "iodevice.h" #include "iofactory.h" @@ -11,7 +12,6 @@ #include -using namespace ::std; using namespace Binc; static const unsigned int ISO8601SIZE = 32; @@ -20,12 +20,10 @@ namespace Binc { void showGreeting(void); }; -//------------------------------------------------------------------------ void Binc::showGreeting(void) { Session &session = Session::getInstance(); - - time_t t = time(0); + time_t t = time(nullptr); struct tm *mytm = localtime(&t); char mytime[ISO8601SIZE]; @@ -34,8 +32,8 @@ void Binc::showGreeting(void) if (session.hasEnv("VERBOSE_GREETING")) { bincClient << "* OK Welcome to Binc IMAP " << BINC_VERSION << " " << IMAP_VERSION - << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << endl; + << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << std::endl; } else { - bincClient << "* OK Welcome to Binc IMAP at " << mytime << endl; + bincClient << "* OK Welcome to Binc IMAP at " << mytime << std::endl; } } -- cgit v1.2.3