From: <and...@us...> - 2013-11-26 06:52:45
|
Revision: 12754 http://sourceforge.net/p/plplot/code/12754 Author: andrewross Date: 2013-11-26 06:52:42 +0000 (Tue, 26 Nov 2013) Log Message: ----------- Set default NULL arguments for plsvect, so there is no need to supply any arguments to reset the arrow style to the default. Modified Paths: -------------- trunk/bindings/c++/plstream.h trunk/examples/c++/x22.cc Modified: trunk/bindings/c++/plstream.h =================================================================== --- trunk/bindings/c++/plstream.h 2013-11-26 06:46:51 UTC (rev 12753) +++ trunk/bindings/c++/plstream.h 2013-11-26 06:52:42 UTC (rev 12754) @@ -135,7 +135,7 @@ PLPointer pltr_data ); // Set the arrow style - void svect( const PLFLT *arrow_x, const PLFLT *arrow_y, PLINT npts, bool fill ); + void svect( const PLFLT *arrow_x = NULL, const PLFLT *arrow_y = NULL, PLINT npts = 0, bool fill = false ); // This functions similarly to plbox() except that the origin of the axes is // placed at the user-specified point (x0, y0). Modified: trunk/examples/c++/x22.cc =================================================================== --- trunk/examples/c++/x22.cc 2013-11-26 06:46:51 UTC (rev 12753) +++ trunk/examples/c++/x22.cc 2013-11-26 06:52:42 UTC (rev 12754) @@ -392,8 +392,8 @@ constriction2(); // Reset arrow style to the default by passing two - // NULL arrays - pls->svect( NULL, NULL, 0, 0 ); + // NULL arrays (this are the default arguments) + pls->svect( ); potential(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |