[vte] lib: Use g_propagate_error here



commit 215b0605773d0351b1ae05d32c29dfda09b869eb
Author: Christian Persch <chpe src gnome org>
Date:   Wed Feb 19 21:41:22 2020 +0100

    lib: Use g_propagate_error here

 src/glib-glue.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/glib-glue.hh b/src/glib-glue.hh
index 379e36ce..5a1d7b3d 100644
--- a/src/glib-glue.hh
+++ b/src/glib-glue.hh
@@ -71,7 +71,7 @@ public:
 
         void reset() noexcept { g_clear_error(&m_error); }
 
-        bool propagate(GError** error) noexcept { *error = m_error; m_error = nullptr; return false; }
+        bool propagate(GError** error) noexcept { g_propagate_error(error, m_error); m_error = nullptr; 
return false; }
 
 private:
         GError* m_error{nullptr};


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