diff options
-rw-r--r-- | examples/options/main.cc | 2 | ||||
-rw-r--r-- | gio/giomm/contenttype.h | 3 | ||||
-rw-r--r-- | glib/glibmm/base64.cc | 2 | ||||
-rw-r--r-- | glib/glibmm/class.cc | 8 | ||||
-rw-r--r-- | glib/glibmm/containerhandle_shared.h | 4 | ||||
-rw-r--r-- | glib/glibmm/dispatcher.cc | 4 | ||||
-rw-r--r-- | glib/glibmm/main.cc | 4 | ||||
-rw-r--r-- | glib/glibmm/object.h | 2 | ||||
-rw-r--r-- | glib/glibmm/objectbase.h | 4 | ||||
-rw-r--r-- | glib/glibmm/signalproxy.h | 2 | ||||
-rw-r--r-- | glib/glibmm/signalproxy_connectionnode.cc | 8 | ||||
-rw-r--r-- | glib/glibmm/ustring.cc | 2 | ||||
-rw-r--r-- | glib/glibmm/value_custom.cc | 12 | ||||
-rw-r--r-- | glib/glibmm/weakref.h | 2 | ||||
-rw-r--r-- | tests/glibmm_interface_move/main.cc | 18 |
15 files changed, 39 insertions, 38 deletions
diff --git a/examples/options/main.cc b/examples/options/main.cc index 45d92e98..8da855e3 100644 --- a/examples/options/main.cc +++ b/examples/options/main.cc @@ -70,7 +70,7 @@ ExampleOptionGroup::ExampleOptionGroup() entry3.set_short_name('g'); entry3.set_description("The Goo"); m_arg_goo = "default-goo-value"; // We can choose a default to be used if the user doesn't specify - // this option. + // this option. add_entry(entry3, m_arg_goo); Glib::OptionEntry entry4; diff --git a/gio/giomm/contenttype.h b/gio/giomm/contenttype.h index 2785d86c..d4f76940 100644 --- a/gio/giomm/contenttype.h +++ b/gio/giomm/contenttype.h @@ -163,7 +163,8 @@ Glib::ustring content_type_guess( * * The types returned all have the form x-content/foo, e.g. * x-content/audio-cdda (for audio CDs) or x-content/image-dcf - * (for a camera memory card). See the <a href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec">shared-mime-info</a> + * (for a camera memory card). See the <a + * href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec">shared-mime-info</a> * specification for more on x-content types. * * @param root The root of the tree to guess a type for. diff --git a/glib/glibmm/base64.cc b/glib/glibmm/base64.cc index 27ba4663..c9c279cf 100644 --- a/glib/glibmm/base64.cc +++ b/glib/glibmm/base64.cc @@ -32,7 +32,7 @@ Base64::encode(const std::string& source, bool break_lines) ((len / 3 + 1) * 4 + 4) / 72 + 1 bytes of extra space. */ gsize length = (source.length() / 3 + 1) * 4 + 1; // + 1 for the terminating zero - length += ((length / 72) + 1); // in case break_lines = true + length += ((length / 72) + 1); // in case break_lines = true const auto buf = make_unique_ptr_gfree((char*)g_malloc(length)); gint state = 0, save = 0; const guchar* src = reinterpret_cast<const unsigned char*>(source.data()); diff --git a/glib/glibmm/class.cc b/glib/glibmm/class.cc index 66349a1c..75b7d131 100644 --- a/glib/glibmm/class.cc +++ b/glib/glibmm/class.cc @@ -62,7 +62,7 @@ Class::register_derived_type(GType base_type, GTypeModule* module) nullptr, // class_finalize nullptr, // class_data instance_size, - 0, // n_preallocs + 0, // n_preallocs nullptr, // instance_init nullptr, // value_table }; @@ -120,13 +120,13 @@ Class::clone_custom_type( const GTypeInfo derived_info = { class_size, - nullptr, // base_init + nullptr, // base_init &Class::custom_class_base_finalize_function, // base_finalize &Class::custom_class_init_function, nullptr, // class_finalize - this, // class_data + this, // class_data instance_size, - 0, // n_preallocs + 0, // n_preallocs nullptr, // instance_init nullptr, // value_table }; diff --git a/glib/glibmm/containerhandle_shared.h b/glib/glibmm/containerhandle_shared.h index 77c54c1d..7084e9b8 100644 --- a/glib/glibmm/containerhandle_shared.h +++ b/glib/glibmm/containerhandle_shared.h @@ -50,8 +50,8 @@ namespace Glib enum OwnershipType { OWNERSHIP_NONE = 0, /*!< Do not release anything */ - OWNERSHIP_SHALLOW, /*!< Release the list, but not its elements, when the container is deleted */ - OWNERSHIP_DEEP /*!< Release the list, and its elements, when the container is deleted. */ + OWNERSHIP_SHALLOW, /*!< Release the list, but not its elements, when the container is deleted */ + OWNERSHIP_DEEP /*!< Release the list, and its elements, when the container is deleted. */ }; /** Utility class holding an iterator sequence. diff --git a/glib/glibmm/dispatcher.cc b/glib/glibmm/dispatcher.cc index d77cfc5b..8525fbed 100644 --- a/glib/glibmm/dispatcher.cc +++ b/glib/glibmm/dispatcher.cc @@ -84,7 +84,7 @@ fd_close_and_invalidate(HANDLE& fd) fd = 0; } } -#else /* !G_OS_WIN32 */ +#else /* !G_OS_WIN32 */ /* * Set the close-on-exec flag on the file descriptor, * so that it won't be leaked if a new process is spawned. @@ -414,7 +414,7 @@ bool DispatchNotifier::pipe_io_handler(Glib::IOCondition) warn_failed_pipe_io("ResetEvent"); } } -#else /* !G_OS_WIN32 */ +#else /* !G_OS_WIN32 */ gssize n_read; diff --git a/glib/glibmm/main.cc b/glib/glibmm/main.cc index 8148120e..8b0ab1ba 100644 --- a/glib/glibmm/main.cc +++ b/glib/glibmm/main.cc @@ -856,8 +856,8 @@ wrap(GMainLoop* gobject, bool take_copy) const GSourceFuncs Source::vfunc_table_ = { &Source::prepare_vfunc, &Source::check_vfunc, &Source::dispatch_vfunc, nullptr, // finalize_vfunc // We can't use finalize_vfunc because there is no way - // to store a pointer to our wrapper anywhere in GSource so - // that it persists until finalize_vfunc would be called from here. + // to store a pointer to our wrapper anywhere in GSource so + // that it persists until finalize_vfunc would be called from here. nullptr, // closure_callback nullptr, // closure_marshal }; diff --git a/glib/glibmm/object.h b/glib/glibmm/object.h index 1ec9f3ba..522f84a9 100644 --- a/glib/glibmm/object.h +++ b/glib/glibmm/object.h @@ -31,7 +31,7 @@ #include <glibmm/wrap.h> #include <glibmm/quark.h> #include <glibmm/refptr.h> -#include <glibmm/utility.h> /* Could be private, but that would be tedious. */ +#include <glibmm/utility.h> /* Could be private, but that would be tedious. */ #include <glibmm/containerhandle_shared.h> /* Because its specializations may be here. */ #include <glibmm/value.h> #include <glib.h> /* for G_GNUC_NULL_TERMINATED */ diff --git a/glib/glibmm/objectbase.h b/glib/glibmm/objectbase.h index a6b45aca..68e1b228 100644 --- a/glib/glibmm/objectbase.h +++ b/glib/glibmm/objectbase.h @@ -28,7 +28,7 @@ #include <glibmm/debug.h> #include <sigc++/trackable.h> #include <typeinfo> -#include <map> // Needed until the next ABI break. +#include <map> // Needed until the next ABI break. #include <memory> // Not used by ObjectBase any more, but user code may rely on it being here. #include <mutex> @@ -236,7 +236,7 @@ protected: static std::mutex extra_object_base_data_mutex; public: // is_derived_() must be public, so that overridden vfuncs and signal handlers can call it - // via ObjectBase. + // via ObjectBase. /// This is for use by gtkmm wrappers only, and not by applications. bool is_derived_() const; // We keep this non-inline version, to preserve ABI. diff --git a/glib/glibmm/signalproxy.h b/glib/glibmm/signalproxy.h index 932f8866..7237be02 100644 --- a/glib/glibmm/signalproxy.h +++ b/glib/glibmm/signalproxy.h @@ -288,7 +288,7 @@ protected: sigc::slot_base& connect_impl_(bool notify, sigc::slot_base&& slot, bool after); private: - const SignalProxyInfo* info_; // Pointer to statically allocated structure. + const SignalProxyInfo* info_; // Pointer to statically allocated structure. const Glib::ustring detailed_name_; // signal_name[::detail_name] // no copy assignment diff --git a/glib/glibmm/signalproxy_connectionnode.cc b/glib/glibmm/signalproxy_connectionnode.cc index b4b517c8..ba67486c 100644 --- a/glib/glibmm/signalproxy_connectionnode.cc +++ b/glib/glibmm/signalproxy_connectionnode.cc @@ -55,9 +55,9 @@ SignalProxyConnectionNode::notify(void* data) conn->object_ = nullptr; if (g_signal_handler_is_connected(o, conn->connection_id_)) // We check first, because during - // destruction, GTK+ sometimes seems - // to disconnect them for us, before - // we expect it to. See bug #87912 + // destruction, GTK+ sometimes seems + // to disconnect them for us, before + // we expect it to. See bug #87912 { // Disconnecting triggers execution of destroy_notify_handler(), eiter immediately or later: // When the signal handler is currently running. (for instance, if the callback disconnects @@ -94,7 +94,7 @@ SignalProxyConnectionNode::destroy_notify_handler(gpointer data, GClosure*) conn->object_ = nullptr; delete conn; // if there are connection objects referring to slot_ they are notified during - // destruction of slot_ + // destruction of slot_ } } diff --git a/glib/glibmm/ustring.cc b/glib/glibmm/ustring.cc index 051764c1..15ab0098 100644 --- a/glib/glibmm/ustring.cc +++ b/glib/glibmm/ustring.cc @@ -1369,7 +1369,7 @@ ustring::FormatStream::to_string() const str.size() * sizeof(std::wstring::value_type), "UTF-8", "WCHAR_T", nullptr, &n_bytes, &error)); #endif /* !(__STDC_ISO_10646__ || G_OS_WIN32) */ -#else /* !GLIBMM_HAVE_WIDE_STREAM */ +#else /* !GLIBMM_HAVE_WIDE_STREAM */ const std::string str = stream_.str(); gsize n_bytes = 0; diff --git a/glib/glibmm/value_custom.cc b/glib/glibmm/value_custom.cc index 1d1e3a1d..69354ef4 100644 --- a/glib/glibmm/value_custom.cc +++ b/glib/glibmm/value_custom.cc @@ -74,14 +74,14 @@ custom_boxed_type_register( }; const GTypeInfo type_info = { - 0, // class_size + 0, // class_size nullptr, // base_init nullptr, // base_finalize nullptr, // class_init_func nullptr, // class_finalize nullptr, // class_data - 0, // instance_size - 0, // n_preallocs + 0, // instance_size + 0, // n_preallocs nullptr, // instance_init &value_table, }; @@ -115,14 +115,14 @@ custom_pointer_type_register(const char* type_name) } const GTypeInfo type_info = { - 0, // class_size + 0, // class_size nullptr, // base_init nullptr, // base_finalize nullptr, // class_init_func nullptr, // class_finalize nullptr, // class_data - 0, // instance_size - 0, // n_preallocs + 0, // instance_size + 0, // n_preallocs nullptr, // instance_init nullptr, // value_table }; diff --git a/glib/glibmm/weakref.h b/glib/glibmm/weakref.h index 40da9c75..f4226cf7 100644 --- a/glib/glibmm/weakref.h +++ b/glib/glibmm/weakref.h @@ -21,7 +21,7 @@ #include <glibmm/refptr.h> #include <glibmm/objectbase.h> #include <type_traits> // std::is_base_of<> -#include <utility> // std::swap<>, std::forward<> +#include <utility> // std::swap<>, std::forward<> namespace Glib { diff --git a/tests/glibmm_interface_move/main.cc b/tests/glibmm_interface_move/main.cc index 45b81de4..99dbd584 100644 --- a/tests/glibmm_interface_move/main.cc +++ b/tests/glibmm_interface_move/main.cc @@ -26,15 +26,15 @@ test_Iface_get_type(void) { const GTypeInfo info = { sizeof(TestIface), // class_size - test_Iface_init, // base_init - nullptr, // base_finalize - nullptr, // class_init - nullptr, // class_finalize - nullptr, // class_data - 0, // instance_size - 0, // n_preallocs - nullptr, // instance_init - nullptr // value_table + test_Iface_init, // base_init + nullptr, // base_finalize + nullptr, // class_init + nullptr, // class_finalize + nullptr, // class_data + 0, // instance_size + 0, // n_preallocs + nullptr, // instance_init + nullptr // value_table }; type = g_type_register_static(G_TYPE_INTERFACE, "TestIface", &info, GTypeFlags(0)); |