Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2010
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. Index: akonadi/server/src/response.cpp
  2. ===================================================================
  3. --- akonadi/server/src/response.cpp (revision 1106740)
  4. +++ akonadi/server/src/response.cpp (working copy)
  5. @@ -71,12 +71,12 @@
  6.  
  7. void Response::setUntagged( )
  8. {
  9. - m_tag = "*";
  10. + m_tag = QByteArray(1, '*');
  11. }
  12.  
  13. void Response::setContinuation( )
  14. {
  15. - m_tag = "+";
  16. + m_tag = QByteArray(1, '+');
  17. }
  18.  
  19. void Response::setString( const QByteArray & string )
  20. Index: akonadi/server/src/interpreter.cpp
  21. ===================================================================
  22. --- akonadi/server/src/interpreter.cpp (revision 1106740)
  23. +++ akonadi/server/src/interpreter.cpp (working copy)
  24. @@ -77,7 +77,7 @@
  25. if ( mIsLeaf ) {
  26. return QString( "(%1 %2 %3)" ).arg( mKey, mComparator, mPattern );
  27. } else {
  28. - QString text = "(";
  29. + QString text = '(';
  30. text += ( mRelation == And ? "&" : "|" );
  31. for ( int i = 0; i < mItems.count(); ++i )
  32. text += mItems[ i ]->dump();
  33. Index: akonadi/server/src/handler/append.cpp
  34. ===================================================================
  35. --- akonadi/server/src/handler/append.cpp (revision 1106740)
  36. +++ akonadi/server/src/handler/append.cpp (working copy)
  37. @@ -200,7 +200,7 @@
  38. // Date time is always stored in UTC time zone by the server.
  39. QString datetime = QLocale::c().toString( item.datetime(), QLatin1String( "dd-MMM-yyyy hh:mm:ss +0000" ) );
  40.  
  41. - QByteArray res( "[UIDNEXT " + QByteArray::number( item.id() ) + " " );
  42. + QByteArray res( "[UIDNEXT " + QByteArray::number( item.id() ) + ' ' );
  43. res.append( "DATETIME " + ImapParser::quote( datetime.toUtf8() ) );
  44. res.append( ']' );
  45.  
  46. Index: akonadi/server/src/handler/fetchhelper.cpp
  47. ===================================================================
  48. --- akonadi/server/src/handler/fetchhelper.cpp (revision 1106740)
  49. +++ akonadi/server/src/handler/fetchhelper.cpp (working copy)
  50. @@ -216,7 +216,7 @@
  51. data = PartHelper::translateData( data, partIsExternal );
  52. int version = partQuery.query().value( partQueryVersionColumn ).toInt();
  53. if ( version != 0 ) { // '0' is the default, so don't send it
  54. - part += "[" + QByteArray::number( version ) + "]";
  55. + part += '[' + QByteArray::number( version ) + ']';
  56. }
  57. if ( mExternalPayloadSupported && partIsExternal ) { // external data and this is supported by the client
  58. part += " [FILE] ";
  59. Index: akonadi/server/src/akonadiconnection.cpp
  60. ===================================================================
  61. --- akonadi/server/src/akonadiconnection.cpp (revision 1106740)
  62. +++ akonadi/server/src/akonadiconnection.cpp (working copy)
  63. @@ -121,7 +121,7 @@
  64. if ( tag.isEmpty() && m_streamParser->atCommandEnd() )
  65. continue;
  66. const QByteArray command = m_streamParser->readString();
  67. - Tracer::self()->connectionInput( m_identifier, QString::fromUtf8( tag + " " + command + " " + m_streamParser->readRemainingData() ) );
  68. + Tracer::self()->connectionInput( m_identifier, QString::fromUtf8( tag + ' ' + command + ' ' + m_streamParser->readRemainingData() ) );
  69. m_currentHandler = findHandlerForCommand( command );
  70. assert( m_currentHandler );
  71. connect( m_currentHandler, SIGNAL( responseAvailable( const Response & ) ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement