Eliminate make_cleanup_ui_file_delete / make ui_file a class hierarchy
[deliverable/binutils-gdb.git] / gdb / c-exp.y
index 8a92cce0ab3fa903e7a0466f35dfe2e177405deb..2753c6ec5d17f308addc5e5753cb95be6d590719 100644 (file)
@@ -1555,13 +1555,11 @@ oper:   OPERATOR NEW
        |       OPERATOR OBJC_LBRAC ']'
                        { $$ = operator_stoken ("[]"); }
        |       OPERATOR conversion_type_id
-                       { struct ui_file *buf = mem_fileopen ();
+                       { string_file buf;
 
-                         c_print_type ($2, NULL, buf, -1, 0,
+                         c_print_type ($2, NULL, &buf, -1, 0,
                                        &type_print_raw_options);
-                         std::string name = ui_file_as_string (buf);
-                         ui_file_delete (buf);
-                         $$ = operator_stoken (name.c_str ());
+                         $$ = operator_stoken (buf.c_str ());
                        }
        ;
 
This page took 0.025343 seconds and 4 git commands to generate.