Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: akonadi/server/control/agenttype.cpp
- ===================================================================
- --- akonadi/server/control/agenttype.cpp (revision 1106878)
- +++ akonadi/server/control/agenttype.cpp (working copy)
- @@ -44,12 +44,12 @@
- file.beginGroup( "Desktop Entry" );
- foreach(const QString& key, file.allKeys() ) {
- - if ( key.startsWith( "Name[" ) ) {
- + if ( key.startsWith( QLatin1String("Name[") ) ) {
- QString lang = key.mid( 5, key.length()-6);
- name.insert( lang, QString::fromUtf8( file.value( key ).toByteArray() ) );
- } else if ( key == "Name" ) {
- name.insert( "en_US", QString::fromUtf8( file.value( "Name" ).toByteArray() ) );
- - } else if ( key.startsWith( "Comment[" ) ) {
- + } else if ( key.startsWith( QLatin1String("Comment[") ) ) {
- QString lang = key.mid( 8, key.length()-9);
- comment.insert( lang, QString::fromUtf8( file.value( key ).toByteArray() ) );
- } else if ( key == "Comment" ) {
- Index: akonadi/server/control/agentmanager.cpp
- ===================================================================
- --- akonadi/server/control/agentmanager.cpp (revision 1106878)
- +++ akonadi/server/control/agentmanager.cpp (working copy)
- @@ -506,7 +506,7 @@
- continueStartup();
- }
- - if ( name.startsWith( "org.freedesktop.Akonadi.Agent." ) ) {
- + if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Agent.") ) ) {
- // An agent service went up or down
- @@ -526,7 +526,7 @@
- emit agentInstanceAdded( identifier );
- }
- - else if ( name.startsWith( "org.freedesktop.Akonadi.Resource." ) ) {
- + else if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Resource.") ) ) {
- // A resource service went up or down
- @@ -540,7 +540,7 @@
- mAgentInstances.value( identifier )->obtainResourceInterface();
- }
- - else if ( name.startsWith( "org.freedesktop.Akonadi.Preprocessor." ) ) {
- + else if ( name.startsWith( QLatin1String("org.freedesktop.Akonadi.Preprocessor.") ) ) {
- // A preprocessor service went up or down
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement