From a7c560bc61fd36b6ac14cf1ff3b615d8f3476e7b Mon Sep 17 00:00:00 2001
From: Tim Blechmann <tim.blechmann@qt.io>
Date: Tue, 2 Sep 2025 12:35:39 +0800
Subject: [PATCH] tcime: hide implementation detail in anonymous namespace

---
 src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp b/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
index 3f0f7f7b..6792dd42 100644
--- a/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
+++ b/src/plugins/tcime/3rdparty/tcime/cangjiedictionary.cpp
@@ -68,6 +68,8 @@ QStringList CangjieDictionary::getWords(const QString &input) const
     return searchWords(secondaryIndex, data);
 }
 
+namespace {
+
 class DictionaryComparator
 {
 public:
@@ -84,6 +86,8 @@ private:
     const std::vector<QCollatorSortKey> &sortKeys;
 };
 
+} // namespace
+
 QStringList CangjieDictionary::sortWords(const DictionaryEntry &data) const
 {
     int length = data.size() / 2;
-- 
2.51.0

