a few more use array.Empty<byte>

This commit is contained in:
UbitUmarov
2022-03-13 02:05:56 +00:00
parent e043d8a2eb
commit e1ce7408da
5 changed files with 11 additions and 9 deletions

View File

@@ -140,10 +140,12 @@ namespace OpenSim.Framework
switch (tmpSlice.ToString())
{
case "http":
case "hg":
case "hop":
case "http":
case "surl":
case "x-grid-info":
// only https has this defined
if (issecure)
{
Schema = "https://";

View File

@@ -75,8 +75,8 @@ namespace OpenSim.Framework
// Remember subregions of the heightmap that has changed.
private BitArray m_taint;
private int m_taintSizeX;
private int m_taintSizeY;
private readonly int m_taintSizeX;
private readonly int m_taintSizeY;
// legacy CompressionFactor
public float CompressionFactor { get; private set; }

View File

@@ -106,7 +106,7 @@ namespace OpenSim.Framework.Tests
{
UUID Random1 = UUID.Random();
UUID Random2 = UUID.Random();
byte[] data = new byte[0];
byte[] data = Array.Empty<byte>();
CacheItemBase cb1 = new CacheItemBase(Random1.ToString(), DateTime.Now + TimeSpan.FromDays(1));
CacheItemBase cb2 = new CacheItemBase(Random2.ToString(), DateTime.Now + TimeSpan.FromDays(1));
CacheItemBase cb3 = new CacheItemBase(Random1.ToString(), DateTime.Now + TimeSpan.FromDays(1));