Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19863

Add const to TYPELIB pointers

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.5.0
    • Component/s: OTHER
    • Labels:
      None

      Description

      In many places in the code, a const qualifier can be added to TYPELIB pointers:

      Members:

      • Field_enum::typelib
      • Column_definition_attributes::interval
      • Create_field::save_interval
      • Item_type_holder::enum_set_typelib
      • Type_holder::m_typelib

      Return values in methods returning a TYPELIB pointer:

      • Field::get_typelib()
      • Type_all_attributes::get_typelib()

      Related method and function parameters getting a TYPELIB pointer should also be fixed accordingly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: