diff options
author | Jakub Stachowski <qbast@go2.pl> | 2008-05-06 18:47:59 +0000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-23 23:12:58 +0900 |
commit | 17fd5b55320e30d7b9c233078ac66422fbcf4bc3 (patch) | |
tree | 0a675229c65ad2f8e6f4d0d587d07ba72a6803b0 /tdeioslave | |
parent | 1c5a8d48566351f830909822643e1c6ee2a0fd74 (diff) | |
download | tdepim-17fd5b55320e30d7b9c233078ac66422fbcf4bc3.tar.gz tdepim-17fd5b55320e30d7b9c233078ac66422fbcf4bc3.zip |
Use static const instead of #define
Cherry-picked from: c247b0607d3315a43f21c417ef261ab8eb2979e1
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
(cherry picked from commit 738d19c1eb8dc042f0f5f9236e1864971f8a2c43)
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/imap4/imap4.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdeioslave/imap4/imap4.cc b/tdeioslave/imap4/imap4.cc index a50ab2f0f..a572235e7 100644 --- a/tdeioslave/imap4/imap4.cc +++ b/tdeioslave/imap4/imap4.cc @@ -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; |