From: <i7...@us...> - 2011-02-25 08:25:19
|
Revision: 8135 http://octave.svn.sourceforge.net/octave/?rev=8135&view=rev Author: i7tiol Date: 2011-02-25 08:25:13 +0000 (Fri, 25 Feb 2011) Log Message: ----------- Replace depricated 1-D Array initialization. Modified Paths: -------------- trunk/octave-forge/main/struct/DESCRIPTION trunk/octave-forge/main/struct/src/structcat.cc Modified: trunk/octave-forge/main/struct/DESCRIPTION =================================================================== --- trunk/octave-forge/main/struct/DESCRIPTION 2011-02-24 11:53:21 UTC (rev 8134) +++ trunk/octave-forge/main/struct/DESCRIPTION 2011-02-25 08:25:13 UTC (rev 8135) @@ -1,6 +1,6 @@ Name: Struct Version: 1.0.9 -Date: 2010-12-02 +Date: 2011-02-25 Author: Etienne Grossmann and Olaf Till <ola...@un...> Maintainer: Etienne Grossmann Title: Structure Handling. Modified: trunk/octave-forge/main/struct/src/structcat.cc =================================================================== --- trunk/octave-forge/main/struct/src/structcat.cc 2011-02-24 11:53:21 UTC (rev 8134) +++ trunk/octave-forge/main/struct/src/structcat.cc 2011-02-25 08:25:13 UTC (rev 8135) @@ -2,7 +2,7 @@ Copyright (C) 2009 John W. Eaton Copyright (C) 2009 Jaroslav Hajek -Copyright (C) 2010 Olaf Till +Copyright (C) 2010, 2011 Olaf Till This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -136,13 +136,13 @@ // be some additional setup needed, and so this should be avoided. octave_value tmp = args (1); - tmp = tmp.resize (dim_vector (0,0)).resize (dv); + tmp = tmp.resize (dim_vector (0, 0)).resize (dv); if (error_state) return retval; int dv_len = dv.length (); - Array<octave_idx_type> ra_idx (dv_len, 0); + Array<octave_idx_type> ra_idx (dim_vector (dv_len, 1), 0); for (int j = 1; j < n_args; j++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |