comparison libinterp/corefcn/graphics.in.h @ 23433:c9fab0bc983e

maint: Use convention 'int& x' for naming references. * ButtonGroup.cc, Canvas.cc, Canvas.h, annotation-dialog.cc, annotation-dialog.h, dialog.h, documentation-dock-widget.cc, files-dock-widget.cc, files-dock-widget.h, find-files-dialog.cc, find-files-dialog.h, find-files-model.cc, find-files-model.h, history-dock-widget.cc, history-dock-widget.h, file-editor-tab.cc, file-editor-tab.h, file-editor.cc, file-editor.h, main-window.cc, main-window.h, octave-qt-link.h, parser.cc, parser.h, webinfo.cc, webinfo.h, settings-dialog.cc, bsxfun.cc, call-stack.cc, call-stack.h, fft.cc, fft2.cc, fftn.cc, gl-render.cc, graphics.cc, graphics.in.h, input.cc, load-save.cc, ls-hdf5.cc, ls-hdf5.h, octave-link.h, pr-output.cc, regexp.cc, sparse-xdiv.cc, sparse-xdiv.h, symtab.cc, xdiv.cc, xdiv.h, zfstream.h, __eigs__.cc, __ode15__.cc, ov-base.h, ov-builtin.cc, ov-cx-sparse.h, ov-fcn-handle.cc, ov-fcn-handle.h, ov.cc, ov.h, jit-ir.h, jit-typeinfo.cc, jit-typeinfo.h, pt-jit.cc, pt-jit.h, CMatrix.cc, CMatrix.h, CSparse.cc, CSparse.h, MatrixType.cc, MatrixType.h, dDiagMatrix.cc, dMatrix.cc, dMatrix.h, dSparse.cc, dSparse.h, fCMatrix.cc, fCMatrix.h, fDiagMatrix.cc, fMatrix.cc, fMatrix.h, eigs-base.cc, oct-fftw.cc, oct-rand.h, sparse-dmsolve.cc, kpse.cc, lo-regexp.h: Use convention 'int& x' for naming references.
author Rik <rik@octave.org>
date Mon, 24 Apr 2017 17:20:37 -0700
parents e0c20a22da7e
children db1fdf4384dd
comparison
equal deleted inserted replaced
23432:e35a5c1233d0 23433:c9fab0bc983e
2782 if (! valid_object ()) 2782 if (! valid_object ())
2783 error ("base_graphics_object::override_defaults: invalid graphics object"); 2783 error ("base_graphics_object::override_defaults: invalid graphics object");
2784 get_properties ().override_defaults (obj); 2784 get_properties ().override_defaults (obj);
2785 } 2785 }
2786 2786
2787 void build_user_defaults_map (property_list::pval_map_type &def, 2787 void build_user_defaults_map (property_list::pval_map_type& def,
2788 const std::string go_name) const; 2788 const std::string go_name) const;
2789 2789
2790 virtual void set_from_list (property_list& plist) 2790 virtual void set_from_list (property_list& plist)
2791 { 2791 {
2792 if (! valid_object ()) 2792 if (! valid_object ())
3047 void override_defaults (void) 3047 void override_defaults (void)
3048 { 3048 {
3049 rep->override_defaults (*rep); 3049 rep->override_defaults (*rep);
3050 } 3050 }
3051 3051
3052 void build_user_defaults_map (property_list::pval_map_type &def, 3052 void build_user_defaults_map (property_list::pval_map_type& def,
3053 const std::string go_name) const 3053 const std::string go_name) const
3054 { 3054 {
3055 rep->build_user_defaults_map (def, go_name); 3055 rep->build_user_defaults_map (def, go_name);
3056 } 3056 }
3057 3057
5133 public: 5133 public:
5134 octave_value get_color_data (void) const; 5134 octave_value get_color_data (void) const;
5135 5135
5136 // Matlab allows incoherent data to be stored into patch properties. 5136 // Matlab allows incoherent data to be stored into patch properties.
5137 // The patch should then be ignored by the renderer. 5137 // The patch should then be ignored by the renderer.
5138 bool has_bad_data (std::string &msg) const 5138 bool has_bad_data (std::string& msg) const
5139 { 5139 {
5140 msg = bad_data_msg; 5140 msg = bad_data_msg;
5141 return ! msg.empty (); 5141 return ! msg.empty ();
5142 } 5142 }
5143 5143