mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +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;
|
isLocal = src.isLocal;
|
||||||
robotIQ = src.robotIQ;
|
robotIQ = src.robotIQ;
|
||||||
if ( null != src.name ) {
|
name = src.name;
|
||||||
name = new String(src.name);
|
password = src.password;
|
||||||
}
|
dictName = src.dictName;
|
||||||
if ( null != src.password ) {
|
|
||||||
password = new String(src.password);
|
|
||||||
}
|
|
||||||
if ( null != src.dictName ) {
|
|
||||||
dictName = new String(src.dictName);
|
|
||||||
}
|
|
||||||
secondsUsed = src.secondsUsed;
|
secondsUsed = src.secondsUsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue