Changeset 10273


Ignore:
Timestamp:
10/29/05 18:21:52 (16 years ago)
Author:
piso
Message:

SimpleString?(FastStringBuffer?): use FastStringBuffer?.toCharArray().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/SimpleString.java

    r10120 r10273  
    33 *
    44 * Copyright (C) 2004-2005 Peter Graves
    5  * $Id: SimpleString.java,v 1.33 2005-10-16 02:03:28 piso Exp $
     5 * $Id: SimpleString.java,v 1.34 2005-10-29 18:21:52 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    6161    public SimpleString(FastStringBuffer sb)
    6262    {
    63         chars = new char[capacity = sb.length()];
    64         sb.getChars(0, capacity, chars, 0);
     63        chars = sb.toCharArray();
     64        capacity = chars.length;
    6565    }
    6666
Note: See TracChangeset for help on using the changeset viewer.