# HG changeset patch # User John W. Eaton # Date 1443718200 14400 # Node ID dcfbf4c1c3c8e458f15e8b029102ea482bdb3bf6 # Parent 17e507df10e3a9a50241d6a875415d85d3d35bcf eliminate trailing whitespace and tabs from sources * Canvas.cc, Canvas.h, Figure.cc, gl-render.h, graphics.cc, ov-fcn-handle.cc, ov-java.cc, Range.cc, CmplxCHOL.cc, dbleCHOL.cc, floatCHOL.cc: Eliminate trailing whitespace and tabs used for indentation. diff -r 17e507df10e3 -r dcfbf4c1c3c8 libgui/graphics/Canvas.cc --- a/libgui/graphics/Canvas.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/libgui/graphics/Canvas.cc Thu Oct 01 12:50:00 2015 -0400 @@ -268,7 +268,6 @@ ap.set_zgrid (state); redraw (true); - } } } @@ -371,8 +370,8 @@ return zm.contents ("Motion").string_value (); } -void -Canvas::select_object (graphics_object obj, QMouseEvent* event, +void +Canvas::select_object (graphics_object obj, QMouseEvent* event, graphics_object ¤tObj, graphics_object &axesObj, bool axes_only) { @@ -407,21 +406,20 @@ for (QList::ConstIterator it = axesList.begin (); it != axesList.end (); ++it) { - const axes::properties& ap = + const axes::properties& ap = dynamic_cast ((*it).get_properties ()); ColumnVector p0 = ap.pixel2coord (pt.x (), pt.y ()); Matrix xlim = ap.get_xlim ().matrix_value (); Matrix ylim = ap.get_ylim ().matrix_value (); - if (xlim(0) < p0(0) && xlim(1) > p0(0) + if (xlim(0) < p0(0) && xlim(1) > p0(0) && ylim(0) < p0(1) && ylim(1) > p0(1)) { axesObj = *it; return; } } - } else if (! currentObj) { @@ -523,8 +521,8 @@ } } - // Update mouse coordinates in the figure window status bar - graphics_object figObj = + // Update mouse coordinates in the figure window status bar + graphics_object figObj = gh_manager::get_object (m_handle).get_ancestor ("figure"); if (figObj.valid_object ()) @@ -534,16 +532,16 @@ if (axesObj.valid_object ()) { - // FIXME: should we use signal/slot mechanism instead of + // FIXME: should we use signal/slot mechanism instead of // directly calling parent fig methods - Figure* fig = + Figure* fig = dynamic_cast (Backend::toolkitObject (figObj)); axes::properties& ap = Utils::properties (axesObj); if (fig) fig->updateStatusBar (ap.pixel2coord (event->x (), event->y ())); } - } + } } void @@ -591,7 +589,7 @@ { graphics_object figObj (obj.get_ancestor ("figure")); graphics_object currentObj, axesObj; - + select_object (obj, event, currentObj, axesObj); if (axesObj) @@ -633,7 +631,7 @@ if (currentObj.get ("buttondownfcn").is_empty ()) { - graphics_object parentObj = + graphics_object parentObj = gh_manager::get_object (currentObj.get_parent ()); if (parentObj.valid_object () && parentObj.isa ("hggroup")) diff -r 17e507df10e3 -r dcfbf4c1c3c8 libgui/graphics/Canvas.h --- a/libgui/graphics/Canvas.h Thu Oct 01 17:35:34 2015 +0200 +++ b/libgui/graphics/Canvas.h Thu Oct 01 12:50:00 2015 -0400 @@ -108,8 +108,8 @@ const graphics_object& obj); void annotation_callback (const octave_value_list& args); - void select_object (graphics_object obj, QMouseEvent* event, - graphics_object ¤tObj, graphics_object &axesObj, + void select_object (graphics_object obj, QMouseEvent* event, + graphics_object ¤tObj, graphics_object &axesObj, bool axes_only = false); private: diff -r 17e507df10e3 -r dcfbf4c1c3c8 libgui/graphics/Figure.cc --- a/libgui/graphics/Figure.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/libgui/graphics/Figure.cc Thu Oct 01 12:50:00 2015 -0400 @@ -129,14 +129,14 @@ { m_container = new Container (win); win->setCentralWidget (m_container); - + figure::properties& fp = properties
(); // Enable mouse tracking m_container->setMouseTracking (true); foreach (QWidget* w, m_container->findChildren ()) { w->setMouseTracking (true); } - + // Status bar m_statusBar = win->statusBar (); int boffset = 0; @@ -151,7 +151,7 @@ { toffset += m_figureToolBar->sizeHint ().height (); boffset += m_statusBar->sizeHint ().height (); - } + } else { m_figureToolBar->hide (); @@ -437,7 +437,7 @@ if (! m_menuBar->isHidden ()) toffset += m_menuBar->sizeHint ().height () + 1; - + if (! m_statusBar->isHidden ()) boffset += m_statusBar->sizeHint ().height () + 1; diff -r 17e507df10e3 -r dcfbf4c1c3c8 libinterp/corefcn/gl-render.h --- a/libinterp/corefcn/gl-render.h Thu Oct 01 17:35:34 2015 +0200 +++ b/libinterp/corefcn/gl-render.h Thu Oct 01 12:50:00 2015 -0400 @@ -108,7 +108,7 @@ double z1, double z2); virtual void set_clipping (bool on); virtual void set_font (const base_properties& props); - virtual void set_interpreter (const caseless_str interp) + virtual void set_interpreter (const caseless_str interp) { interpreter = interp; } diff -r 17e507df10e3 -r dcfbf4c1c3c8 libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/libinterp/corefcn/graphics.cc Thu Oct 01 12:50:00 2015 -0400 @@ -2289,7 +2289,7 @@ for (octave_idx_type p = 0; p < m.nfields (); p++) { // FIXME: Would it be better to extract all the keys at once rather than - // repeatedly call keys() inside a for loop? + // repeatedly call keys() inside a for loop? caseless_str pname = m.keys ()[p]; octave_value val = octave_value (m.contents (pname).elem (m.numel () - 1)); @@ -3091,7 +3091,7 @@ base_properties::mark_modified (void) { // Mark existing object as modified - __modified__ = "on"; + __modified__ = "on"; // Attempt to mark parent object as modified if it exists graphics_object parent_go = gh_manager::get_object (get_parent ()); if (parent_go) diff -r 17e507df10e3 -r dcfbf4c1c3c8 libinterp/octave-value/ov-fcn-handle.cc --- a/libinterp/octave-value/ov-fcn-handle.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/libinterp/octave-value/ov-fcn-handle.cc Thu Oct 01 12:50:00 2015 -0400 @@ -1872,7 +1872,7 @@ eval_string (nm, true, parse_status); if (parse_status == 0) - retval = anon_fcn_handle; + retval = anon_fcn_handle; } else retval = make_fcn_handle (nm, nargin != 2); diff -r 17e507df10e3 -r dcfbf4c1c3c8 libinterp/octave-value/ov-java.cc --- a/libinterp/octave-value/ov-java.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/libinterp/octave-value/ov-java.cc Thu Oct 01 12:50:00 2015 -0400 @@ -1847,12 +1847,12 @@ } // FIXME: Need routines to actually save/load java objects through Serialize. -// See bug #42112. +// See bug #42112. bool octave_java::save_ascii (std::ostream& /* os */) { - warning ("save: unable to save java objects, skipping"); + warning ("save: unable to save java objects, skipping"); return true; } @@ -1867,7 +1867,7 @@ bool octave_java::save_binary (std::ostream& /* os */, bool& /* save_as_floats */) { - warning ("save: unable to save java objects, skipping"); + warning ("save: unable to save java objects, skipping"); return true; } diff -r 17e507df10e3 -r dcfbf4c1c3c8 liboctave/array/Range.cc --- a/liboctave/array/Range.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/liboctave/array/Range.cc Thu Oct 01 12:50:00 2015 -0400 @@ -54,7 +54,7 @@ if (rng_numel > 0 && cache.numel () == 0) { cache.resize (1, rng_numel); - + // The first element must always be *exactly* the base. // E.g, -0 would otherwise become +0 in the loop (-0 + 0*increment). cache(0) = rng_base; diff -r 17e507df10e3 -r dcfbf4c1c3c8 liboctave/numeric/CmplxCHOL.cc --- a/liboctave/numeric/CmplxCHOL.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/liboctave/numeric/CmplxCHOL.cc Thu Oct 01 12:50:00 2015 -0400 @@ -120,7 +120,7 @@ { for (octave_idx_type i = 0; i < j; i++) chol_mat.xelem (i, j) = 0.0; - for (octave_idx_type i = j; i < n; i++) + for (octave_idx_type i = j; i < n; i++) chol_mat.xelem (i, j) = a (i, j); } } diff -r 17e507df10e3 -r dcfbf4c1c3c8 liboctave/numeric/dbleCHOL.cc --- a/liboctave/numeric/dbleCHOL.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/liboctave/numeric/dbleCHOL.cc Thu Oct 01 12:50:00 2015 -0400 @@ -120,7 +120,7 @@ { for (octave_idx_type i = 0; i < j; i++) chol_mat.xelem (i, j) = 0.0; - for (octave_idx_type i = j; i < n; i++) + for (octave_idx_type i = j; i < n; i++) chol_mat.xelem (i, j) = a (i, j); } } @@ -161,14 +161,13 @@ F77_XFCN (dpocon, DPOCON, (F77_CONST_CHAR_ARG2 ("U", 1), n, h, n, anorm, xrcond, pz, piz, dpocon_info F77_CHAR_ARG_LEN (1))); - } + } else { F77_XFCN (dpocon, DPOCON, (F77_CONST_CHAR_ARG2 ("L", 1), n, h, n, anorm, xrcond, pz, piz, dpocon_info F77_CHAR_ARG_LEN (1))); - } - + } if (dpocon_info != 0) info = -1; diff -r 17e507df10e3 -r dcfbf4c1c3c8 liboctave/numeric/floatCHOL.cc --- a/liboctave/numeric/floatCHOL.cc Thu Oct 01 17:35:34 2015 +0200 +++ b/liboctave/numeric/floatCHOL.cc Thu Oct 01 12:50:00 2015 -0400 @@ -136,13 +136,13 @@ { F77_XFCN (spotrf, SPOTRF, (F77_CONST_CHAR_ARG2 ("U", 1), n, h, n, info - F77_CHAR_ARG_LEN (1))); + F77_CHAR_ARG_LEN (1))); } else { F77_XFCN (spotrf, SPOTRF, (F77_CONST_CHAR_ARG2 ("L", 1), n, h, n, info - F77_CHAR_ARG_LEN (1))); + F77_CHAR_ARG_LEN (1))); } xrcond = 0.0; @@ -161,13 +161,13 @@ { F77_XFCN (spocon, SPOCON, (F77_CONST_CHAR_ARG2 ("U", 1), n, h, n, anorm, xrcond, pz, piz, spocon_info - F77_CHAR_ARG_LEN (1))); + F77_CHAR_ARG_LEN (1))); } else { F77_XFCN (spocon, SPOCON, (F77_CONST_CHAR_ARG2 ("L", 1), n, h, n, anorm, xrcond, pz, piz, spocon_info - F77_CHAR_ARG_LEN (1))); + F77_CHAR_ARG_LEN (1))); } @@ -218,7 +218,7 @@ { for (octave_idx_type j = 0; j < r_nc; j++) for (octave_idx_type i = j+1; i < r_nr; i++) - tmp.xelem (i, j) = tmp.xelem (j, i); + tmp.xelem (i, j) = tmp.xelem (j, i); } else {