зеркало из https://github.com/mozilla/pjs.git
Fix bustage. gcc dosn't like function-results used as non-const argument.
This commit is contained in:
Родитель
04aa8602af
Коммит
37b0bd69b1
|
@ -263,7 +263,7 @@ void NamedMap::put(const String& key, TxObject* obj) {
|
|||
* @param key the key of the Object to remove from the NamedMap
|
||||
* @return the Object being removed
|
||||
**/
|
||||
TxObject* NamedMap::remove(String& key) {
|
||||
TxObject* NamedMap::remove(const String& key) {
|
||||
|
||||
// compute hash for key
|
||||
long hashCode = hashKey(key);
|
||||
|
|
|
@ -125,7 +125,7 @@ public:
|
|||
* @param index the position in the NodeSet to remove the Node from
|
||||
* @return the Node that was removed from the list
|
||||
**/
|
||||
TxObject* remove(String& key);
|
||||
TxObject* remove(const String& key);
|
||||
|
||||
/**
|
||||
* Sets the object deletion flag. If set to true, objects in
|
||||
|
|
Загрузка…
Ссылка в новой задаче