Mercurial > octave
diff libinterp/corefcn/genprops.awk @ 31883:56809fe23e53
eliminate some clang warnings about defaulted functions being deleted
* oct-conf-post-public.in.h (OCTAVE_DISABLE_COPY_MOVE_ASGN,
OCTAVE_DEFAULT_COPY_MOVE_CTOR, OCTAVE_DEFAULT_CONSTRUCT_DELETE):
New macros.
* gl-render.cc (opengl_renderer::draw_all_lights):
Use reference to base_propertoes since copying is not allowed.
* __init_fltk__.cc (fltk_uimenu::remove_from_menu):
Likewise, for uimenu::properties.
* ls-hdf5.h (hdf5_fstreambase):
Disable copy and move instead of requesting defaults.
* pager.h (diary_buf): Likewise.
* graphics.in.h (base_properties): Likewise.
* kpse.h (kpse_path_iterator): Disable assignment.
* octave-preserve-stream-state.h (preserve_stream_state): Likewise.
* graphics.in.h (radio_property, color_property,
double_radio_property, bool_property, any_property): Likewise.
* pager.h (pager_buf): Disable copy and move.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 03 Mar 2023 16:04:18 -0500 |
parents | 1daf8bfceac3 |
children | 2e484f9f1f18 |
line wrap: on
line diff
--- a/libinterp/corefcn/genprops.awk Fri Mar 03 14:04:18 2023 -0500 +++ b/libinterp/corefcn/genprops.awk Fri Mar 03 16:04:18 2023 -0500 @@ -284,7 +284,7 @@ printf ("public:\n"); printf (" properties (const graphics_handle& mh, const graphics_handle& p);\n\n"); printf (" properties () = delete;\n\n"); - printf (" OCTAVE_DEFAULT_COPY_MOVE (properties)\n\n"); + printf (" OCTAVE_DISABLE_COPY_MOVE (properties)\n\n"); printf (" ~properties () = default;\n\n"); printf (" void set (const caseless_str& pname, const octave_value& val);\n\n"); printf (" octave_value get (bool all = false) const;\n\n");