Buffer allocation optimizations in PacketWriter

Misc string cleanup
This commit is contained in:
mark 2006-12-13 18:28:37 +00:00
parent b7ea90d3af
commit 3da4aa9efa
5 changed files with 116 additions and 44 deletions

View file

@ -1055,7 +1055,7 @@ namespace Server.Commands
break;
}
if ( line == null || line.Length == 0 )
if ( string.IsNullOrEmpty( line ) )
return null;
DecorationList list = new DecorationList();

View file

@ -63,7 +63,7 @@ namespace Server.Guilds
AddButton( 40, 251, 0x4B9, 0x4BA, 4, GumpButtonType.Reply, 0 ); //Charter Edit button
s = guild.Website;
if( s == null || s == "" )
if( string.IsNullOrEmpty( s ) )
s = "Guild website not yet set.";
AddHtml( 65, 306, 480, 30, s, true, false );
if( isLeader )