[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/sysadmin/muon/installer
From:       Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date:       2010-12-31 2:07:10
Message-ID: 20101231020710.94FC5AC8AE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210374 by jmthomas:

Don't bother splitting the categories up since we're already calling contains() while \
filtering. This speeds filtering by category up.


 M  +2 -2      Application.cpp  
 M  +1 -1      Application.h  


--- trunk/extragear/sysadmin/muon/installer/Application.cpp #1210373:1210374
@@ -201,10 +201,10 @@
     return ret;
 }
 
-QStringList Application::categories() const
+QString Application::categories() const
 {
     QString categoryString = getField("Categories");
-    return categoryString.split(';');
+    return categoryString;
 }
 
 QApt::PackageList Application::addons()
--- trunk/extragear/sysadmin/muon/installer/Application.h #1210373:1210374
@@ -43,7 +43,7 @@
     QApt::Package *package();
     QString icon() const;
     QString menuPath();
-    QStringList categories() const;
+    QString categories() const;
     QApt::PackageList addons();
     int popconScore() const;
     bool isValid() const;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic