Avoid format strings in some places.
Where it is possible to directly concat strings, prefer this in some often-called methods.
This commit is contained in:
committed by
Matthias Mailänder
parent
f78c3bef33
commit
5b51f2a0fa
@@ -475,6 +475,6 @@ namespace OpenRA
|
||||
public bool Equals(TraitPair<T> other) { return this == other; }
|
||||
public override bool Equals(object obj) { return obj is TraitPair<T> && Equals((TraitPair<T>)obj); }
|
||||
|
||||
public override string ToString() { return "{0}->{1}".F(Actor.Info.Name, Trait.GetType().Name); }
|
||||
public override string ToString() { return Actor.Info.Name + "->" + Trait.GetType().Name; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user