reporting: use end keyword in simplified syntax

time-shift
Houtan Bastani 2013-03-29 17:14:09 +01:00
parent 691c3b79f8
commit 95ee0857b9
3 changed files with 5 additions and 10 deletions

View File

@ -29,8 +29,6 @@ function o = addGraph(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
lastPage = o.pages.numPages();
lastSection = o.pages(lastPage).numSections();
o.pages(lastPage).sections(lastSection) = ...
o.pages(lastPage).sections(lastSection).addGraph(varargin{:});
o.pages(end).sections(end) = ...
o.pages(end).sections(end).addGraph(varargin{:});
end

View File

@ -29,6 +29,5 @@ function o = addSection(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
o.pages(o.pages.numPages()) = ...
o.pages(o.pages.numPages()).addSection(varargin{:});
o.pages(end) = o.pages(end).addSection(varargin{:});
end

View File

@ -29,8 +29,6 @@ function o = addTable(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
lastPage = o.pages.numPages();
lastSection = o.pages(lastPage).numSections();
o.pages(lastPage).sections(lastSection) = ...
o.pages(lastPage).sections(lastSection).addTable(varargin{:});
o.pages(end).sections(end) = ...
o.pages(end).sections(end).addTable(varargin{:});
end