mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
fix warnings
This commit is contained in:
parent
148de97331
commit
ec122c85d5
10 changed files with 17 additions and 60 deletions
|
|
@ -93,8 +93,9 @@ namespace Dalamud.Utility
|
|||
this.firstIndex = 0;
|
||||
}
|
||||
}
|
||||
else // value < this._size
|
||||
else
|
||||
{
|
||||
// value < this._size
|
||||
ThrowHelper.ThrowArgumentOutOfRangeExceptionIfLessThan(nameof(value), value, 0);
|
||||
if (value < this.Count)
|
||||
{
|
||||
|
|
@ -156,14 +157,14 @@ namespace Dalamud.Utility
|
|||
}
|
||||
|
||||
/// <summary>Add items to this <see cref="RollingList{T}"/>.</summary>
|
||||
/// <param name="items">Items to add.</param>
|
||||
public void AddRange(IEnumerable<T> items)
|
||||
/// <param name="range">Items to add.</param>
|
||||
public void AddRange(IEnumerable<T> range)
|
||||
{
|
||||
if (this.size == 0) return;
|
||||
foreach (var item in items) this.Add(item);
|
||||
foreach (var item in range) this.Add(item);
|
||||
}
|
||||
|
||||
/// <summary>Removes all elements from the <see cref="RollingList{T}"/></summary>
|
||||
/// <summary>Removes all elements from the <see cref="RollingList{T}"/>.</summary>
|
||||
public void Clear()
|
||||
{
|
||||
this.items.Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue