• Thomas Haller's avatar
    libnm/trivial: cleanup variable names in settings' class-init functions · 23adc373
    Thomas Haller authored
    - Don't use @parent_class name. This local variable (and @object_class) is
      the class instance up-cast to the pointer types of the parents. The point
      here is not that it is the direct parent. The point is, that it's the
      NMSettingClass type.
      Also, it can only be used inconsistently, in face of NMSettingIP4Config,
      who's parent type is NMSettingIPConfig. Clearly, inside
      nm-setting-ip4-config.c we wouldn't want to use the "parent_class"
      name. Consistently rename @parent_class to @setting_class.
    
    - Also rename the pointer to the own class to @klass. "setting_class" is also the
      wrong name for that, because the right name would be something like
      "setting_6lowpan_class".
      However, "klass" is preferred over the latter, because we commonly create new
      GObject implementations by copying an existing one. Generic names like "klass"
      and "self" inside a type implementation make that simpler.
    
    - drop useless comments like
    
         /* virtual functions */
         /* Properties */
    
      It's better to logically and visually structure the code, and avoid trival
      remarks about that. They only end up being used inconsistently. If you
      even need a stronger visual separator, then an 80 char /****/ line
      should be preferred.
    23adc373
Name
Last commit
Last update
..
tests Loading commit data...
COPYING Loading commit data...
NetworkManager.h Loading commit data...
NetworkManagerVPN.h Loading commit data...
crypto.c Loading commit data...
crypto.h Loading commit data...
crypto_gnutls.c Loading commit data...
crypto_nss.c Loading commit data...
libnm-util.pc.in Loading commit data...
libnm-util.ver Loading commit data...
meson.build Loading commit data...
nm-connection.c Loading commit data...
nm-connection.h Loading commit data...
nm-dbus-glib-types.h Loading commit data...
nm-gvaluearray-compat.h Loading commit data...
nm-param-spec-specialized.c Loading commit data...
nm-param-spec-specialized.h Loading commit data...
nm-setting-8021x.c Loading commit data...
nm-setting-8021x.h Loading commit data...
nm-setting-adsl.c Loading commit data...
nm-setting-adsl.h Loading commit data...
nm-setting-bluetooth.c Loading commit data...
nm-setting-bluetooth.h Loading commit data...
nm-setting-bond.c Loading commit data...
nm-setting-bond.h Loading commit data...
nm-setting-bridge-port.c Loading commit data...
nm-setting-bridge-port.h Loading commit data...
nm-setting-bridge.c Loading commit data...
nm-setting-bridge.h Loading commit data...
nm-setting-cdma.c Loading commit data...
nm-setting-cdma.h Loading commit data...
nm-setting-connection.c Loading commit data...
nm-setting-connection.h Loading commit data...
nm-setting-dcb.c Loading commit data...
nm-setting-dcb.h Loading commit data...
nm-setting-generic.c Loading commit data...
nm-setting-generic.h Loading commit data...
nm-setting-gsm.c Loading commit data...
nm-setting-gsm.h Loading commit data...
nm-setting-infiniband.c Loading commit data...
nm-setting-infiniband.h Loading commit data...
nm-setting-ip4-config.c Loading commit data...
nm-setting-ip4-config.h Loading commit data...
nm-setting-ip6-config.c Loading commit data...
nm-setting-ip6-config.h Loading commit data...
nm-setting-olpc-mesh.c Loading commit data...
nm-setting-olpc-mesh.h Loading commit data...
nm-setting-ppp.c Loading commit data...
nm-setting-ppp.h Loading commit data...
nm-setting-pppoe.c Loading commit data...
nm-setting-pppoe.h Loading commit data...
nm-setting-private.h Loading commit data...
nm-setting-serial.c Loading commit data...
nm-setting-serial.h Loading commit data...
nm-setting-team-port.c Loading commit data...
nm-setting-team-port.h Loading commit data...
nm-setting-team.c Loading commit data...
nm-setting-team.h Loading commit data...
nm-setting-vlan.c Loading commit data...
nm-setting-vlan.h Loading commit data...
nm-setting-vpn.c Loading commit data...
nm-setting-vpn.h Loading commit data...
nm-setting-wimax.c Loading commit data...
nm-setting-wimax.h Loading commit data...
nm-setting-wired.c Loading commit data...
nm-setting-wired.h Loading commit data...
nm-setting-wireless-security.c Loading commit data...
nm-setting-wireless-security.h Loading commit data...
nm-setting-wireless.c Loading commit data...
nm-setting-wireless.h Loading commit data...
nm-setting.c Loading commit data...
nm-setting.h Loading commit data...
nm-utils-enum-types.c.template Loading commit data...
nm-utils-enum-types.h.template Loading commit data...
nm-utils-private.h Loading commit data...
nm-utils.c Loading commit data...
nm-utils.h Loading commit data...
nm-value-transforms.c Loading commit data...
nm-version.h Loading commit data...