From 2cc6dc52f6ebb2c9cd5f2d414e1eec2807a9c734 Mon Sep 17 00:00:00 2001 From: mokapsing <39441028+mokapsing@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:10:56 +0800 Subject: [PATCH] fix build error --- src/rimeengine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rimeengine.h b/src/rimeengine.h index 344ea33..e85edb2 100644 --- a/src/rimeengine.h +++ b/src/rimeengine.h @@ -50,11 +50,11 @@ class OrderedMap { // 根据键查找值,并且在常数时间内返回 bool count(std::string key) { - return map.count(key) > 0 + return map.count(key) > 0; } std::list::iterator find(std::string key) { - return std::find(order.begin(), order.end(), key) + return std::find(order.begin(), order.end(), key); } void clear() {