mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
no need to make new string to copy since they're immutable
This commit is contained in:
parent
c814226a08
commit
3970a3ef8a
1 changed files with 3 additions and 9 deletions
|
@ -45,15 +45,9 @@ public class LocalPlayer {
|
|||
{
|
||||
isLocal = src.isLocal;
|
||||
robotIQ = src.robotIQ;
|
||||
if ( null != src.name ) {
|
||||
name = new String(src.name);
|
||||
}
|
||||
if ( null != src.password ) {
|
||||
password = new String(src.password);
|
||||
}
|
||||
if ( null != src.dictName ) {
|
||||
dictName = new String(src.dictName);
|
||||
}
|
||||
name = src.name;
|
||||
password = src.password;
|
||||
dictName = src.dictName;
|
||||
secondsUsed = src.secondsUsed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue