470b_uppsrc.diff

The diff file to apply for uppsrc directory (variant b) - Sender Ghost, 08/16/2013 07:03 AM

Download (1.28 KB)

View differences:

uppsrc/Core/ValueUtil.cpp 2013-08-16 08:40:05 +0400
500 500
	Clone().key.Set(i, k);
501 501
}
502 502

  
503
int ValueMap::RemoveKey(const Value& key)
504
{
505
	return Clone().key.RemoveKey(key);
506
}
507

  
503 508
void ValueMap::Remove(int i)
504 509
{
505 510
	Data& d = Clone();
uppsrc/Core/ValueUtil.h 2013-08-16 08:27:14 +0400
323 323
	void SetKey(int i, const char* key)             { SetKey(i, Value(key)); }
324 324
	void SetKey(int i, int key)                     { SetKey(i, Value(key)); }
325 325
	void SetKey(int i, Id key)                      { SetKey(i, Value(key.ToString())); }
326

  
327
	int  RemoveKey(const Value& key);
328
	int  RemoveKey(const String& key)               { return RemoveKey(Value(key)); }
329
	int  RemoveKey(const char* key)                 { return RemoveKey(Value(key)); }
330
	int  RemoveKey(int key)                         { return RemoveKey(Value(key)); }
331
	int  RemoveKey(Id key)                          { return RemoveKey(Value(key.ToString())); }
326 332
	void Remove(int i);
327 333

  
328 334
	const Index<Value>& GetKeys() const             { return data->key; }