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

« back to all changes in this revision

Viewing changes to src/sycoca/ksycoca.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:
648
648
 
649
649
void KSycoca::clearCaches()
650
650
{
651
 
#if QT_VERSION >= QT_VERSION_CHECK(5,1,1) // remove when the new Q_GLOBAL_STATIC is in
652
651
    if (ksycocaInstance.exists() && ksycocaInstance()->hasSycoca())
653
 
#else
654
 
    if (ksycocaInstance() && ksycocaInstance()->hasSycoca())
655
 
#endif
656
652
        ksycocaInstance()->sycoca()->d->closeDatabase();
657
653
}
658
654