summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/stringtriebuilder.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-10-24 22:09:23 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-10-24 22:47:59 +0300
commite698870caa3dff7234f0a4433b1751834b9e7811 (patch)
tree6f0d0ca10498223b051f5e04f9a1087147cf3c87 /thirdparty/icu4c/common/stringtriebuilder.cpp
parent1015a481ff43edb1126ab39a147fefda290131e5 (diff)
downloadredot-engine-e698870caa3dff7234f0a4433b1751834b9e7811.tar.gz
Update ICU to 76.1
Diffstat (limited to 'thirdparty/icu4c/common/stringtriebuilder.cpp')
-rw-r--r--thirdparty/icu4c/common/stringtriebuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/icu4c/common/stringtriebuilder.cpp b/thirdparty/icu4c/common/stringtriebuilder.cpp
index 2a40dc88fd..6867039062 100644
--- a/thirdparty/icu4c/common/stringtriebuilder.cpp
+++ b/thirdparty/icu4c/common/stringtriebuilder.cpp
@@ -328,7 +328,7 @@ StringTrieBuilder::registerNode(Node *newNode, UErrorCode &errorCode) {
const UHashElement *old=uhash_find(nodes, newNode);
if(old!=nullptr) {
delete newNode;
- return (Node *)old->key.pointer;
+ return static_cast<Node*>(old->key.pointer);
}
// If uhash_puti() returns a non-zero value from an equivalent, previously
// registered node, then uhash_find() failed to find that and we will leak newNode.
@@ -352,7 +352,7 @@ StringTrieBuilder::registerFinalValue(int32_t value, UErrorCode &errorCode) {
FinalValueNode key(value);
const UHashElement *old=uhash_find(nodes, &key);
if(old!=nullptr) {
- return (Node *)old->key.pointer;
+ return static_cast<Node*>(old->key.pointer);
}
Node *newNode=new FinalValueNode(value);
if(newNode==nullptr) {
@@ -375,12 +375,12 @@ StringTrieBuilder::registerFinalValue(int32_t value, UErrorCode &errorCode) {
int32_t
StringTrieBuilder::hashNode(const void *node) {
- return ((const Node *)node)->hashCode();
+ return static_cast<const Node*>(node)->hashCode();
}
UBool
StringTrieBuilder::equalNodes(const void *left, const void *right) {
- return *(const Node *)left==*(const Node *)right;
+ return *static_cast<const Node*>(left) == *static_cast<const Node*>(right);
}
bool