summaryrefslogtreecommitdiffstats
path: root/src/storage/punct_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2024-09-24 14:33:12 +0800
committerPeng Wu <alexepico@gmail.com>2024-09-24 14:33:12 +0800
commit17b616cbc44dcdf662edb665e0f3ddee9d065070 (patch)
treece62769d523f79dad61a82bf39a3f391b09d981d /src/storage/punct_table.cpp
parent53cc359bb90f2c50e818297ff43e8e36c6a57310 (diff)
downloadlibpinyin-17b616cbc44dcdf662edb665e0f3ddee9d065070.tar.gz
libpinyin-17b616cbc44dcdf662edb665e0f3ddee9d065070.tar.xz
libpinyin-17b616cbc44dcdf662edb665e0f3ddee9d065070.zip
Fix compile
Diffstat (limited to 'src/storage/punct_table.cpp')
-rw-r--r--src/storage/punct_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/punct_table.cpp b/src/storage/punct_table.cpp
index d901ded..184be92 100644
--- a/src/storage/punct_table.cpp
+++ b/src/storage/punct_table.cpp
@@ -35,7 +35,7 @@ PunctTableEntry::~PunctTableEntry() {
m_utf8_cache = NULL;
}
-bool PunctTableEntry::escape(const gchar * punct, gint maxlen = -1) {
+bool PunctTableEntry::escape(const gchar * punct, gint maxlen) {
if (maxlen == -1)
maxlen = G_MAXINT;
@@ -54,7 +54,7 @@ bool PunctTableEntry::escape(const gchar * punct, gint maxlen = -1) {
return true;
}
-int PunctTableEntry::unescape(const ucs4_t * punct, gint maxlen = -1) {
+int PunctTableEntry::unescape(const ucs4_t * punct, gint maxlen) {
if (maxlen == -1)
maxlen = G_MAXINT;