[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kioslave/imap4
From: Jakub Stachowski <qbast () go2 ! pl>
Date: 2008-05-06 18:47:59
Message-ID: 1210099679.823950.26110.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 804674 by qbast:
Use static const instead of #define
M +3 -3 imap4.cpp
--- trunk/KDE/kdepimlibs/kioslave/imap4/imap4.cpp #804673:804674
@@ -95,8 +95,8 @@
#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 KIO;
@@ -634,7 +634,7 @@
closeConnection ();
myHost = _host;
if (_port == 0)
- myPort = (mySSL) ? IMAPS_PORT : IMAP_PORT;
+ myPort = (mySSL) ? ImapsPort : ImapPort;
else
myPort = _port;
myUser = _user;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic