[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kioslave/imap4
From: Allen Winter <winter () kde ! org>
Date: 2008-10-20 23:00:17
Message-ID: 1224543617.701008.28347.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 874193 by winterz:
fix a Krazy QString::replace issue
fix a couple compile warnings
M +9 -9 imap4.cpp
--- trunk/KDE/kdepimlibs/kioslave/imap4/imap4.cpp #874192:874193
@@ -14,9 +14,9 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Send comments and bug fixes to jcorey@fruity.ath.cx
*
@@ -56,8 +56,8 @@
* ERR_DOES_NOT_EXIST is reserved for folders.
*/
+#include <kdepimlibs-compat.h> // for KDE_signal, remove in KDEPIM 4.2
#include "imap4.h"
-#include <kdepimlibs-compat.h> // for KDE_signal, remove in KDEPIM 4.2
#include <QByteArray>
#include <QList>
@@ -319,7 +319,7 @@
{
// get the MIME header and fill getLastHandled()
QString mySection = aSection;
- mySection.replace("]", ".MIME]");
+ mySection.replace(']', ".MIME]");
cmd = sendCommand (imapCommand::clientFetch (aSequence, mySection));
do
{
@@ -640,9 +640,9 @@
if (!myHost.isEmpty ())
closeConnection ();
myHost = _host;
- if (_port == 0)
+ if (_port == 0)
myPort = (mySSL) ? ImapsPort : ImapPort;
- else
+ else
myPort = _port;
myUser = _user;
myPass = _pass;
@@ -1614,7 +1614,7 @@
if ( type == 'E' ) {
kDebug(7116) << "IMAP4Protocol::specialCustomCommand: extended mode" << endl;
imapCommand *cmd = sendCommand (imapCommand::clientCustom( command, QString() ));
- while ( !parseLoop () );
+ while ( !parseLoop () ) {};
// see if server is waiting
if (!cmd->isComplete () && !getContinuation ().isEmpty ())
@@ -1637,7 +1637,7 @@
do
{
- while (!parseLoop ());
+ while (!parseLoop ()) {};
}
while (!cmd->isComplete ());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic