X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..9663b57d33cc571e269bcfab3d9df43b149162db:/icuSources/common/stringtriebuilder.cpp diff --git a/icuSources/common/stringtriebuilder.cpp b/icuSources/common/stringtriebuilder.cpp index e3e58eb6..cf5b7b73 100644 --- a/icuSources/common/stringtriebuilder.cpp +++ b/icuSources/common/stringtriebuilder.cpp @@ -1,10 +1,12 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* -* Copyright (C) 2010-2011, International Business Machines +* Copyright (C) 2010-2012, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * file name: stringtriebuilder.cpp -* encoding: US-ASCII +* encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * @@ -12,7 +14,7 @@ * created by: Markus W. Scherer */ -#include // for 'typeid' to work +#include "utypeinfo.h" // for 'typeid' to work #include "unicode/utypes.h" #include "unicode/stringtriebuilder.h" #include "uassert.h" @@ -381,8 +383,6 @@ StringTrieBuilder::equalNodes(const void *left, const void *right) { return *(const Node *)left==*(const Node *)right; } -UOBJECT_DEFINE_NO_RTTI_IMPLEMENTATION(StringTrieBuilder) - UBool StringTrieBuilder::Node::operator==(const Node &other) const { return this==&other || (typeid(*this)==typeid(other) && hash==other.hash); @@ -396,8 +396,6 @@ StringTrieBuilder::Node::markRightEdgesFirst(int32_t edgeNumber) { return edgeNumber; } -UOBJECT_DEFINE_NO_RTTI_IMPLEMENTATION(StringTrieBuilder::Node) - UBool StringTrieBuilder::FinalValueNode::operator==(const Node &other) const { if(this==&other) {