mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
use some shared char arrays on string split
This commit is contained in:
@@ -44,7 +44,7 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
public UserAccountData[] GetUsers(UUID scopeID, string query)
|
||||
{
|
||||
string[] words = query.Split(new char[] {' '});
|
||||
string[] words = query.Split();
|
||||
|
||||
bool valid = false;
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace OpenSim.Data.Null
|
||||
// m_log.DebugFormat(
|
||||
// "[NULL USER ACCOUNT DATA]: Called GetUsers with scope [{0}], query [{1}]", scopeID, query);
|
||||
|
||||
string[] words = query.Split(new char[] { ' ' });
|
||||
string[] words = query.Split();
|
||||
|
||||
for (int i = 0; i < words.Length; i++)
|
||||
{
|
||||
|
||||
@@ -279,7 +279,7 @@ namespace OpenSim.Data.PGSQL
|
||||
|
||||
public UserAccountData[] GetUsers(UUID scopeID, string query)
|
||||
{
|
||||
string[] words = query.Split(new char[] { ' ' });
|
||||
string[] words = query.Split();
|
||||
|
||||
for (int i = 0; i < words.Length; i++)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
public UserAccountData[] GetUsers(UUID scopeID, string query)
|
||||
{
|
||||
string[] words = query.Split(new char[] {' '});
|
||||
string[] words = query.Split();
|
||||
|
||||
for (int i = 0 ; i < words.Length ; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user