mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
a few more use array.Empty<byte>
This commit is contained in:
@@ -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://";
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user