thor moved into the main line -- tree code experiences radical changes
This commit is contained in:
+1
-14
@@ -30,19 +30,11 @@ class String {
|
||||
private:
|
||||
ArrayList<char> array_;
|
||||
|
||||
OT_DEF(String) {
|
||||
OT_DEF_BASIC(String) {
|
||||
OT_MY_OBJECT(array_);
|
||||
}
|
||||
|
||||
public:
|
||||
String() {}
|
||||
~String() {}
|
||||
|
||||
String(const String& other) {
|
||||
Copy(other);
|
||||
}
|
||||
CC_ASSIGNMENT_OPERATOR(String);
|
||||
|
||||
/**
|
||||
* Implicit conversion constructor.
|
||||
*/
|
||||
@@ -74,11 +66,6 @@ class String {
|
||||
COMPILER_PRINTF(2, 3)
|
||||
const String& InitSprintf(const char *format, ...);
|
||||
|
||||
/** Copies another string. */
|
||||
void Copy(const String& other) {
|
||||
array_.Copy(other.array_);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes as a copy of an existing region of characters.
|
||||
* The existing array does not need to be null terminated.
|
||||
|
||||
Reference in New Issue
Block a user