[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kresources/groupwise/soap
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2008-06-22 21:31:38
Message-ID: 1214170298.359760.22882.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 823247 by aacid:

make the std::string explicit so that winterz check for bad \
toLatin1|toUtf8.constData() usage checker is happy


 M  +2 -2      groupwiseserver.cpp  


--- trunk/KDE/kdepim/kresources/groupwise/soap/groupwiseserver.cpp #823246:823247
@@ -291,7 +291,7 @@
 
   ngwt__PlainText pt;
 
-  pt.username = mUser.toUtf8().data();
+  pt.username = std::string( mUser.toUtf8().constData() );
   pt.password = conv.qStringToString( mPassword );
   loginReq.auth = &pt;
   mSoap->userid = strdup( mUser.toUtf8().data() );
@@ -827,7 +827,7 @@
     gwUID = getFullIDFor( gwRecordIDFromIcal );
   }
   else
-    gwUID = qGwUid.toLatin1().data();
+    gwUID = std::string( qGwUid.toLatin1().constData() );
 
   if ( gwUID.empty() )
   {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic