]> git.saurik.com Git - apt.git/commitdiff
Make pkgCache::Priority() static, it does not need the instance
authorJulian Andres Klode <jak@debian.org>
Sun, 16 Aug 2015 15:25:51 +0000 (17:25 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 16 Aug 2015 15:25:51 +0000 (17:25 +0200)
It still compiles after the change, so just merge it.

Closes: #448627
apt-pkg/pkgcache.h

index ff250b53206545ced2953614b777616d4f56fad1..801f8556d8b6477bf526ccdaef60892236f73075 100644 (file)
@@ -225,7 +225,7 @@ class pkgCache                                                              /*{{{*/
    inline map_id_t Hash(const char *S) const {return sHash(S);}
 
    // Useful transformation things
-   const char *Priority(unsigned char Priority);
+   static const char *Priority(unsigned char Priority);
    
    // Accessors
    GrpIterator FindGrp(const std::string &Name);