Просмотр исходного кода

Make pkgCache::Priority() static, it does not need the instance

It still compiles after the change, so just merge it.

Closes: #448627
Julian Andres Klode лет назад: 11
Родитель
Сommit
ebc5b43cca
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apt-pkg/pkgcache.h

+ 1 - 1
apt-pkg/pkgcache.h

@@ -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);