|
@@ -29,12 +29,12 @@ namespace Core {
|
|
}
|
|
}
|
|
|
|
|
|
bool operator==(const CharType* s) const {
|
|
bool operator==(const CharType* s) const {
|
|
- for(int i = 0; i < length; i++, s++) {
|
|
+ const CharType* p = data;
|
|
- if(*s == '\0') {
|
|
+ while(*s == *p && *s != '\0') {
|
|
- return *s == data[i];
|
|
+ s++;
|
|
- }
|
|
+ p++;
|
|
}
|
|
}
|
|
- return *s == '\0';
|
|
+ return *s == *p;
|
|
}
|
|
}
|
|
|
|
|
|
template<int L>
|
|
template<int L>
|