[glibmm/glibmm-2-66] Glib::PatternSpec: Ignore deprecation of g_pattern_match()



commit 903eeb1be6093ef176da69ae6b95d936d1e9bf8b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Wed May 5 13:08:32 2021 +0200

    Glib::PatternSpec: Ignore deprecation of g_pattern_match()

 glib/glibmm/pattern.cc | 4 ++++
 1 file changed, 4 insertions(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]