# HG changeset patch # User John W. Eaton # Date 1475769320 14400 # Node ID 51b395d247820e6110f6d2216286ed6d68814d16 # Parent 5aa8f199e3283fddd6cdf0e1492606d91e44e51b maint: strip tabs and trailing whitespace from C++ sources. diff -r 5aa8f199e328 -r 51b395d24782 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Thu Oct 06 11:52:12 2016 -0400 +++ b/libgui/src/main-window.cc Thu Oct 06 11:55:20 2016 -0400 @@ -1014,7 +1014,7 @@ main_window::handle_update_breakpoint_marker_request (bool insert, const QString& file, int line, - const QString& cond) + const QString& cond) { bool cmd_focus = command_window_has_focus (); @@ -1446,12 +1446,12 @@ connect (this, SIGNAL (update_breakpoint_marker_signal (bool, const QString&, - int, const QString&)), + int, const QString&)), editor_window, SLOT (handle_update_breakpoint_marker_request (bool, const QString&, int, - const QString&))); + const QString&))); #endif octave_link::post_event (this, @@ -1595,12 +1595,12 @@ connect (_octave_qt_link, SIGNAL (update_breakpoint_marker_signal (bool, const QString&, - int, const QString&)), + int, const QString&)), this, SLOT (handle_update_breakpoint_marker_request (bool, - const QString&, + const QString&, int, - const QString&))); + const QString&))); connect (_octave_qt_link, SIGNAL (show_doc_signal (const QString &)), diff -r 5aa8f199e328 -r 51b395d24782 libgui/src/main-window.h --- a/libgui/src/main-window.h Thu Oct 06 11:52:12 2016 -0400 +++ b/libgui/src/main-window.h Thu Oct 06 11:55:20 2016 -0400 @@ -168,7 +168,7 @@ void handle_delete_debugger_pointer_request (const QString& file, int line); void handle_update_breakpoint_marker_request (bool insert, const QString& file, int line, - const QString& cond); + const QString& cond); void read_settings (void); void init_terminal_size (void); diff -r 5aa8f199e328 -r 51b395d24782 libgui/src/octave-dock-widget.cc --- a/libgui/src/octave-dock-widget.cc Thu Oct 06 11:52:12 2016 -0400 +++ b/libgui/src/octave-dock-widget.cc Thu Oct 06 11:55:20 2016 -0400 @@ -211,7 +211,7 @@ // remove parent and adjust the (un)dock icon setParent (0, Qt::Window); - _dock_action->setIcon (QIcon (":/actions/icons/widget-dock" + _dock_action->setIcon (QIcon (":/actions/icons/widget-dock" + _icon_color + ".png")); _dock_action->setToolTip (tr ("Dock widget")); diff -r 5aa8f199e328 -r 51b395d24782 libinterp/corefcn/mex.cc --- a/libinterp/corefcn/mex.cc Thu Oct 06 11:52:12 2016 -0400 +++ b/libinterp/corefcn/mex.cc Thu Oct 06 11:55:20 2016 -0400 @@ -300,7 +300,7 @@ { request_mutation (); - return 0; + return 0; } mwSize get_number_of_elements (void) const { return val.numel (); } @@ -313,7 +313,7 @@ get_dimensions (); return ndims == 2 && dims[0] == 1 && dims[1] == 1; - } + } mxClassID get_class_id (void) const { @@ -382,8 +382,8 @@ { if (val.is_sparse_type ()) { - // For sparse arrays, return the first non-zero value. - void * data = val.mex_get_data (); + // For sparse arrays, return the first non-zero value. + void * data = val.mex_get_data (); if (data == NULL) return 0.0; @@ -775,7 +775,7 @@ { dims = static_cast (mxArray::malloc (ndims * sizeof (mwSize))); - + if (dims == NULL) return 1; diff -r 5aa8f199e328 -r 51b395d24782 libinterp/corefcn/regexp.cc --- a/libinterp/corefcn/regexp.cc Thu Oct 06 11:52:12 2016 -0400 +++ b/libinterp/corefcn/regexp.cc Thu Oct 06 11:55:20 2016 -0400 @@ -1124,7 +1124,7 @@ %!assert (regexp ("\n", "\n"), 1) # Test escape sequences are silently converted -%!test <45407> +%!test <45407> %! assert (regexprep ('s', 's', 'x\.y'), 'x.y'); %! assert (regexprep ('s', '(s)', 'x\$1y'), 'x$1y'); %! assert (regexprep ('s', '(s)', 'x\\$1y'), 'x\sy'); diff -r 5aa8f199e328 -r 51b395d24782 src/mkoctfile.in.cc --- a/src/mkoctfile.in.cc Thu Oct 06 11:52:12 2016 -0400 +++ b/src/mkoctfile.in.cc Thu Oct 06 11:55:20 2016 -0400 @@ -602,7 +602,7 @@ } if (output_ext == ".mex" - && vars["ALL_CFLAGS"].find ("-g") != std::string::npos) + && vars["ALL_CFLAGS"].find ("-g") != std::string::npos) { defs += " -DMEX_DEBUG"; }