From 452a4e07fb733f555318e9a254a2a5c0e0e839e8 Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Fri, 24 Jun 2022 20:06:54 +0300 Subject: [PATCH] replace deprecated g_pattern_match_string function --- src/stardict_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stardict_lib.cpp b/src/stardict_lib.cpp index aae5a74..5fb652a 100644 --- a/src/stardict_lib.cpp +++ b/src/stardict_lib.cpp @@ -1003,7 +1003,7 @@ bool Dict::LookupWithRule(GPatternSpec *pspec, glong *aIndex, int iBuffLen) int iIndexCount = 0; for (guint32 i = 0; i < narticles() && iIndexCount < (iBuffLen - 1); i++) - if (g_pattern_match_string(pspec, get_key(i))) + if (g_pattern_spec_match_string(pspec, get_key(i))) aIndex[iIndexCount++] = i; aIndex[iIndexCount] = -1; // -1 is the end.