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

Add const to TYPELIB pointers

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5.0
    • OTHER
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.