[Kst] kdeextragear-2/kst/kst/extensions/elog

George Staikos staikos at kde.org
Thu Oct 7 15:28:59 CEST 2004


CVS commit by staikos: 

fixlets, cleanup


  M +1 -2      elogthreadattrs.cpp   1.7
  M +5 -6      elogthreadsubmit.cpp   1.14


--- kdeextragear-2/kst/kst/extensions/elog/elogthreadattrs.cpp  #1.6:1.7
@@ -66,5 +66,4 @@ void ElogThreadAttrs::doTransmit(int soc
   char request[100000];
   char response[100000];
-  char str[80];
   int i, n;
 
@@ -104,5 +103,5 @@ void ElogThreadAttrs::doTransmit(int soc
     }
     bFirst = FALSE;
-    KCodecs::base64Encode(strUserPassword.ascii());
+    QCString str = KCodecs::base64Encode(strUserPassword.ascii());
     sprintf(request + strlen(request), "upwd=%s;", str.data());
   }

--- kdeextragear-2/kst/kst/extensions/elog/elogthreadsubmit.cpp  #1.13:1.14
@@ -40,6 +40,7 @@
 #include <kaction.h>
 #include <klocale.h>
-#include <kmessagebox.h>
+#include <kmdcodec.h>
 #include <kmdimainfrm.h>
+#include <kmessagebox.h>
 
 #include "elogthreadsubmit.h"
@@ -89,10 +90,8 @@ void ElogThreadSubmit::doTransmit(int so
   QStringList   strListAttributes;
   QStringList   strListAttribute;
-  QString strSplit( "\n" );
-  QString strSplitAttribute( "=" );
   char* content;
   char request[100000];
   char response[100000];
-  char boundary[80], str[80], *p;
+  char boundary[80], *p;
   int i, n, header_length, content_length;
   int iAttachment = 0;
@@ -134,7 +133,7 @@ void ElogThreadSubmit::doTransmit(int so
     addAttribute( content, boundary, "exp", _strLogbook, false );
     
-    strListAttributes = QStringList::split( strSplit, _strAttributes, FALSE ); 
+    strListAttributes = QStringList::split( '\n', _strAttributes, FALSE ); 
     for ( it = strListAttributes.begin(); it != strListAttributes.end(); ++it ) {
-      strListAttribute = QStringList::split( strSplitAttribute, *it, FALSE );
+      strListAttribute = QStringList::split( '=', *it, FALSE );
       if( strListAttribute.count() == 2 ) {
         addAttribute( content, boundary, 





More information about the Kst mailing list