summaryrefslogtreecommitdiff
path: root/glib/glibmm/pattern.cc
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-05-05 13:08:32 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-05-05 13:08:32 +0200
commit9685f6fc8962efc1534c3a5ba5b4e477631ad3f1 (patch)
tree50259e28effac22309281551f67c0db1c8793cb5 /glib/glibmm/pattern.cc
parent983668cfd40f5eed4a555922586826ccdef560de (diff)
downloadglibmm-9685f6fc8962efc1534c3a5ba5b4e477631ad3f1.tar.gz
Glib::PatternSpec: Ignore deprecation of g_pattern_match()
Diffstat (limited to 'glib/glibmm/pattern.cc')
-rw-r--r--glib/glibmm/pattern.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/glibmm/pattern.cc b/glib/glibmm/pattern.cc
index 44936063..26775727 100644
--- a/glib/glibmm/pattern.cc
+++ b/glib/glibmm/pattern.cc
@@ -36,6 +36,9 @@ PatternSpec::~PatternSpec() noexcept
g_pattern_spec_free(gobject_);
}
+// g_pattern_match() is deprecated in glib 2.70.
+// Its replacement, g_pattern_spec_match(), is new in glib 2.70.
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
bool
PatternSpec::match(const Glib::ustring& str) const
{
@@ -47,6 +50,7 @@ PatternSpec::match(const Glib::ustring& str, const Glib::ustring& str_reversed)
{
return g_pattern_match(gobject_, str.bytes(), str.c_str(), str_reversed.c_str());
}
+G_GNUC_END_IGNORE_DEPRECATIONS
bool
PatternSpec::operator==(const PatternSpec& rhs) const