mirror of
https://github.com/opensim/opensim.git
synced 2026-07-04 09:55:55 +08:00
use array.Empty<byte>
This commit is contained in:
@@ -567,7 +567,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
|
||||
if(backImage == null)
|
||||
{
|
||||
SetAlpha(ref image1, newAlpha);
|
||||
byte[] result = new byte[0];
|
||||
byte[] result = Array.Empty<byte>();
|
||||
|
||||
try
|
||||
{
|
||||
@@ -597,7 +597,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
|
||||
image1.Dispose();
|
||||
image2.Dispose();
|
||||
|
||||
byte[] result = new byte[0];
|
||||
byte[] result = Array.Empty<byte>();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
|
||||
RequestState state = (RequestState) result.AsyncState;
|
||||
WebRequest request = (WebRequest) state.Request;
|
||||
Stream stream = null;
|
||||
byte[] imageJ2000 = new byte[0];
|
||||
byte[] imageJ2000 = Array.Empty<byte>();
|
||||
Size newSize = new Size(0, 0);
|
||||
HttpWebResponse response = null;
|
||||
|
||||
|
||||
@@ -382,7 +382,7 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||
GDIDraw(data, graph, altDataDelim, out reuseable);
|
||||
}
|
||||
|
||||
byte[] imageJ2000 = new byte[0];
|
||||
byte[] imageJ2000 = Array.Empty<byte>();
|
||||
|
||||
// This code exists for testing purposes, please do not remove.
|
||||
// if (s_flipper)
|
||||
|
||||
Reference in New Issue
Block a user