]> sourceware.org Git - libabigail.git/commitdiff
writer: small compilation error fix
authorDodji Seketeli <dodji@redhat.com>
Thu, 20 Jan 2022 14:31:26 +0000 (15:31 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 20 Jan 2022 14:32:56 +0000 (15:32 +0100)
* abg-writer.cc (write_type_record): Fix const-ness in argument
passing.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-writer.cc

index 24a1fd56eac638e1d1af959b464e12c368240b1b..7906318e70b43c471c71c24facbb5a49cb90bb96 100644 (file)
@@ -4811,7 +4811,7 @@ write_type_record(xml_writer::write_context&      ctxt,
   //       <c>0x25f9ba8</c>
   //     </type>
 
-  string id = ctxt.get_id_for_type (type);
+  string id = ctxt.get_id_for_type (const_cast<type_base*>(type));
   o << "  <type>\n"
     << "    <id>" << id << "</id>\n"
     << "    <c>"
This page took 0.034408 seconds and 5 git commands to generate.