Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2010
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. Index: akonadi/server/control/agenttype.cpp
  2. ===================================================================
  3. --- akonadi/server/control/agenttype.cpp (revision 1106878)
  4. +++ akonadi/server/control/agenttype.cpp (working copy)
  5. @@ -44,12 +44,12 @@
  6. file.beginGroup( "Desktop Entry" );
  7.  
  8. foreach(const QString& key, file.allKeys() ) {
  9. - if ( key.startsWith( "Name[" ) ) {
  10. + if ( key.startsWith( QLatin1String("Name[") ) ) {
  11. QString lang = key.mid( 5, key.length()-6);
  12. name.insert( lang, QString::fromUtf8( file.value( key ).toByteArray() ) );
  13. } else if ( key == "Name" ) {
  14. name.insert( "en_US", QString::fromUtf8( file.value( "Name" ).toByteArray() ) );
  15. - } else if ( key.startsWith( "Comment[" ) ) {
  16. + } else if ( key.startsWith( QLatin1String("Comment[") ) ) {
  17. QString lang = key.mid( 8, key.length()-9);
  18. comment.insert( lang, QString::fromUtf8( file.value( key ).toByteArray() ) );
  19. } else if ( key == "Comment" ) {
  20. Index: akonadi/server/control/agentmanager.cpp
  21. ===================================================================
  22. --- akonadi/server/control/agentmanager.cpp (revision 1106878)
  23. +++ akonadi/server/control/agentmanager.cpp (working copy)
  24. @@ -506,7 +506,7 @@
  25. continueStartup();
  26. }
  27.  
  28. - if ( name.startsWith( "org.freedesktop.Akonadi.Agent." ) ) {
  29. + if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Agent.") ) ) {
  30.  
  31. // An agent service went up or down
  32.  
  33. @@ -526,7 +526,7 @@
  34. emit agentInstanceAdded( identifier );
  35. }
  36.  
  37. - else if ( name.startsWith( "org.freedesktop.Akonadi.Resource." ) ) {
  38. + else if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Resource.") ) ) {
  39.  
  40. // A resource service went up or down
  41.  
  42. @@ -540,7 +540,7 @@
  43. mAgentInstances.value( identifier )->obtainResourceInterface();
  44. }
  45.  
  46. - else if ( name.startsWith( "org.freedesktop.Akonadi.Preprocessor." ) ) {
  47. + else if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Preprocessor.") ) ) {
  48.  
  49. // A preprocessor service went up or down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement