diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-05-07 12:17:35 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-05-07 12:17:35 +0800 |
commit | c4392f49d1313fbc159882e993683909ea40f188 (patch) | |
tree | 9cf0cefe1cd7af64bd548718d99bbd95a15918f6 /tools | |
parent | 1c9772fc78d6ee308eb2ed70e996a0fd8a410976 (diff) | |
download | glibmm-c4392f49d1313fbc159882e993683909ea40f188.tar.gz |
error.h Avoid exporting class deriving frm std::exception
This will avoid having the ABI tied to a particular STL and compiler version,
and so will eliminate C4275 compiler warnings when building the code.
Also update gerror.m4 so that it will generate code deriving from Glib::Error
with the export macro markings with the member functions, so that things
continue to build properly
Diffstat (limited to 'tools')
-rw-r--r-- | tools/m4/gerror.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/m4/gerror.m4 b/tools/m4/gerror.m4 index 4dabb037..01036f06 100644 --- a/tools/m4/gerror.m4 +++ b/tools/m4/gerror.m4 @@ -17,7 +17,7 @@ ifelse(`$6',,,`dnl /** $6 */ ')dnl -class $9 __CPPNAME__ : public Glib::Error +class __CPPNAME__ : public Glib::Error { public: /** $7 @@ -27,14 +27,14 @@ public: $4 }; - __CPPNAME__`'(Code error_code, const Glib::ustring& error_message); - explicit __CPPNAME__`'(GError* gobject); - Code code() const; + $9 __CPPNAME__`'(Code error_code, const Glib::ustring& error_message); + $9 explicit __CPPNAME__`'(GError* gobject); + $9 Code code() const; #ifndef DOXYGEN_SHOULD_SKIP_THIS private: - static void throw_func(GError* gobject); + $9 static void throw_func(GError* gobject); friend $9 void wrap_init(); // uses throw_func() |