Explorar o código

apt-pkg/contrib/configuration.cc: revert Configuration::Set() ABI break

Michael Vogt %!s(int64=15) %!d(string=hai) anos
pai
achega
0df8c3dccb
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      apt-pkg/contrib/configuration.cc
  2. 1 1
      apt-pkg/contrib/configuration.h

+ 1 - 1
apt-pkg/contrib/configuration.cc

@@ -345,7 +345,7 @@ void Configuration::Set(const char *Name,const string &Value)
 // Configuration::Set - Set an integer value				/*{{{*/
 // Configuration::Set - Set an integer value				/*{{{*/
 // ---------------------------------------------------------------------
 // ---------------------------------------------------------------------
 /* */
 /* */
-void Configuration::Set(const char *Name,int const Value)
+void Configuration::Set(const char *Name,int const &Value)
 {
 {
    Item *Itm = Lookup(Name,true);
    Item *Itm = Lookup(Name,true);
    if (Itm == 0)
    if (Itm == 0)

+ 1 - 1
apt-pkg/contrib/configuration.h

@@ -84,7 +84,7 @@ class Configuration
    void CndSet(const char *Name,const string &Value);
    void CndSet(const char *Name,const string &Value);
    void CndSet(const char *Name,const int Value);
    void CndSet(const char *Name,const int Value);
    void Set(const char *Name,const string &Value);
    void Set(const char *Name,const string &Value);
-   void Set(const char *Name,const int Value);
+   void Set(const char *Name,const int &Value);
    
    
    inline bool Exists(const string &Name) const {return Exists(Name.c_str());};
    inline bool Exists(const string &Name) const {return Exists(Name.c_str());};
    bool Exists(const char *Name) const;
    bool Exists(const char *Name) const;