Use static const instead of #define

Cherry-picked from: c247b0607d3315a43f21c417ef261ab8eb2979e1

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
(cherry picked from commit 738d19c1eb)
r14.0.x
Jakub Stachowski 17 years ago committed by Michele Calgaro
parent 1c5a8d4856
commit 17fd5b5532
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -95,8 +95,8 @@ extern "C" {
#define IMAP_PROTOCOL "imap"
#define IMAP_SSL_PROTOCOL "imaps"
#define IMAP_PORT 143
#define IMAPS_PORT 993
static const int ImapPort = 143;
static const int ImapsPort = 993;
using namespace TDEIO;
@ -634,7 +634,7 @@ IMAP4Protocol::setHost (const TQString & _host, int _port,
closeConnection ();
myHost = _host;
if (_port == 0)
myPort = (mySSL) ? IMAPS_PORT : IMAP_PORT;
myPort = (mySSL) ? ImapsPort : ImapPort;
else
myPort = _port;
myUser = _user;

Loading…
Cancel
Save