瀏覽代碼

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 年之前
父節點
當前提交
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);