Code cleanup.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Cryville.Crtr {
|
||||
public override int Priority {
|
||||
get { return StartEvent == null ? 4 : 6; }
|
||||
}
|
||||
protected override int cmpExtra(StampedEvent other) {
|
||||
protected override int CompareExtra(StampedEvent other) {
|
||||
return Equals(StartEvent, other) ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -75,12 +75,12 @@ namespace Cryville.Crtr {
|
||||
if (u != 0) return u;
|
||||
u = this.Duration.CompareTo(other.Duration);
|
||||
if (u != 0) return u;
|
||||
u = cmpExtra(other);
|
||||
u = CompareExtra(other);
|
||||
if (u != 0) return u;
|
||||
return GetHashCode().CompareTo(other.GetHashCode());
|
||||
}
|
||||
|
||||
protected virtual int cmpExtra(StampedEvent other) {
|
||||
protected virtual int CompareExtra(StampedEvent other) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user