aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/Manager/GenericPriorityQueue.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-17 17:48:01 +0100
committerGitHub <noreply@github.com>2019-01-17 17:48:01 +0100
commite241589969c643116f9fc5c24bcf2009fed83fe5 (patch)
tree5a9e7d266b5f79c6d90a4767e804887b40b87b1c /MediaBrowser.Providers/Manager/GenericPriorityQueue.cs
parent47f08fbb12db5854f5e474ddbf70b758ca084616 (diff)
parent7aa975325af87fe425fe143aaed1df830133be8b (diff)
Merge branch 'dev' into skia-native-arm
Diffstat (limited to 'MediaBrowser.Providers/Manager/GenericPriorityQueue.cs')
-rw-r--r--MediaBrowser.Providers/Manager/GenericPriorityQueue.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/MediaBrowser.Providers/Manager/GenericPriorityQueue.cs b/MediaBrowser.Providers/Manager/GenericPriorityQueue.cs
index 0e6c07357..49656a410 100644
--- a/MediaBrowser.Providers/Manager/GenericPriorityQueue.cs
+++ b/MediaBrowser.Providers/Manager/GenericPriorityQueue.cs
@@ -83,7 +83,7 @@ namespace Priority_Queue
#if DEBUG
if (node == null)
{
- throw new ArgumentNullException("node");
+ throw new ArgumentNullException(nameof(node));
}
if (node.QueueIndex < 0 || node.QueueIndex >= _nodes.Length)
{
@@ -106,7 +106,7 @@ namespace Priority_Queue
#if DEBUG
if (node == null)
{
- throw new ArgumentNullException("node");
+ throw new ArgumentNullException(nameof(node));
}
if (_numNodes >= _nodes.Length - 1)
{
@@ -303,7 +303,7 @@ namespace Priority_Queue
}
/// <summary>
- /// This method must be called on a node every time its priority changes while it is in the queue.
+ /// This method must be called on a node every time its priority changes while it is in the queue.
/// <b>Forgetting to call this method will result in a corrupted queue!</b>
/// Calling this method on a node not in the queue results in undefined behavior
/// O(log n)
@@ -314,7 +314,7 @@ namespace Priority_Queue
#if DEBUG
if (node == null)
{
- throw new ArgumentNullException("node");
+ throw new ArgumentNullException(nameof(node));
}
if (!Contains(node))
{
@@ -344,7 +344,7 @@ namespace Priority_Queue
}
/// <summary>
- /// Removes a node from the queue. The node does not need to be the head of the queue.
+ /// Removes a node from the queue. The node does not need to be the head of the queue.
/// If the node is not in the queue, the result is undefined. If unsure, check Contains() first
/// O(log n)
/// </summary>
@@ -353,7 +353,7 @@ namespace Priority_Queue
#if DEBUG
if (node == null)
{
- throw new ArgumentNullException("node");
+ throw new ArgumentNullException(nameof(node));
}
if (!Contains(node))
{