[Groonga-mysql-commit] mroonga/mroonga at 5db132d [master] Give up using const

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 9 13:22:18 JST 2018


Kouhei Sutou	2018-07-09 13:22:18 +0900 (Mon, 09 Jul 2018)

  New Revision: 5db132df8dc7799e272f10830a94aaf2d981851f
  https://github.com/mroonga/mroonga/commit/5db132df8dc7799e272f10830a94aaf2d981851f

  Message:
    Give up using const

  Modified files:
    ha_mroonga.cpp
    mrn_mysql_compat.h

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2018-07-09 13:16:02 +0900 (fee47483)
+++ ha_mroonga.cpp    2018-07-09 13:22:18 +0900 (4472654e)
@@ -4054,8 +4054,8 @@ bool ha_mroonga::storage_create_foreign_key(TABLE *table,
         continue;
       }
     }
-    const mrn_foreign_key_spec *fk =
-      static_cast<const mrn_foreign_key_spec *>(key_spec);
+    mrn_foreign_key_spec *fk =
+      static_cast<mrn_foreign_key_spec *>(key_spec);
     MRN_KEY_PART_SPEC_LIST_EACH_BEGIN(fk->ref_columns, key_part_ref_spec) {
       const mrn_key_part_spec_field_name *ref_field_name =
         &(key_part_ref_spec->field_name);

  Modified: mrn_mysql_compat.h (+4 -4)
===================================================================
--- mrn_mysql_compat.h    2018-07-09 13:16:02 +0900 (7a104900)
+++ mrn_mysql_compat.h    2018-07-09 13:22:18 +0900 (f2232ed6)
@@ -652,7 +652,7 @@
   typedef Key_spec mrn_key_spec;
 #  define MRN_KEY_SPEC_LIST_EACH_BEGIN(spec_list, spec) do {        \
     for (size_t spec_i; spec_i < spec_list.size(); ++spec_i) {      \
-      const mrn_key_spec *spec = spec_list[spec_i];
+      mrn_key_spec *spec = spec_list[spec_i];
 #  define MRN_KEY_SPEC_LIST_EACH_END()          \
     }                                           \
   } while (false)
@@ -660,7 +660,7 @@
   typedef Key mrn_key_spec;
 #  define MRN_KEY_SPEC_LIST_EACH_BEGIN(spec_list, spec) do {    \
     List_iterator<mrn_key_spec> spec_iterator(spec_list);       \
-    const mrn_key_spec *spec;                                   \
+    mrn_key_spec *spec;                                         \
     while ((spec = spec_iterator++))
 #  define MRN_KEY_SPEC_LIST_EACH_END()          \
   } while (false)
@@ -671,7 +671,7 @@
   spec_list.element_size()
 #  define MRN_KEY_PART_SPEC_LIST_EACH_BEGIN(spec_list, spec) do {       \
     for (size_t spec_i; spec_i < spec_list.size(); ++spec_i) {          \
-      const Key_part_spec *spec = spec_list[spec_i];
+      Key_part_spec *spec = spec_list[spec_i];
 #  define MRN_KEY_PART_SPEC_LIST_EACH_END()     \
     }                                           \
   } while (false)
@@ -680,7 +680,7 @@
   spec_list.elements
 #  define MRN_KEY_PART_SPEC_LIST_EACH_BEGIN(spec_list, spec) do {       \
     List_iterator<Key_part_spec> spec_iterator(spec_list);              \
-    const Key_part_spec *spec;                                          \
+    Key_part_spec *spec;                                                \
     while ((spec = spec_iterator++))
 #  define MRN_KEY_PART_SPEC_LIST_EACH_END()     \
   } while (false)
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180709/a730dbc3/attachment-0001.htm 



More information about the Groonga-mysql-commit mailing list
Back to archive index