~ubuntu-branches/debian/stretch/kservice/stretch

« back to all changes in this revision

Viewing changes to tests/ksycocatest.cpp

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2014-08-05 17:29:09 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140805172909-i30obau6w3p8glfr
Tags: 5.1.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
            it != list.constEnd(); ++it) {
102
102
        KSycocaEntry::Ptr p = (*it);
103
103
        if (p->isType(KST_KService)) {
104
 
            KService::Ptr service = KService::Ptr(p);
 
104
            KService::Ptr service(static_cast<KService*>(p.data()));
105
105
            qDebug("%s", qPrintable(service->name()));
106
106
            qDebug("%s", qPrintable(service->entryPath()));
107
107
        } else if (p->isType(KST_KServiceGroup)) {
108
 
            KServiceGroup::Ptr serviceGroup = KServiceGroup::Ptr(p);
 
108
            KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup*>(p.data()));
109
109
            qDebug("             %s -->", qPrintable(serviceGroup->caption()));
110
110
            if (!first) {
111
111
                first = serviceGroup;
122
122
                it != list.constEnd(); ++it) {
123
123
            KSycocaEntry::Ptr p = (*it);
124
124
            if (p->isType(KST_KService)) {
125
 
                KService::Ptr service = KService::Ptr(p);
 
125
                KService::Ptr service(static_cast<KService*>(p.data()));
126
126
                qDebug("             %s", qPrintable(service->name()));
127
127
            } else if (p->isType(KST_KServiceGroup)) {
128
 
                KServiceGroup::Ptr serviceGroup = KServiceGroup::Ptr(p);
 
128
                KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup*>(p.data()));
129
129
                qDebug("             %s -->", qPrintable(serviceGroup->caption()));
130
130
            } else {
131
131
                qDebug("KServiceGroup: Unexpected object in list!");