Commit 95ee0857 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: use end keyword in simplified syntax

parent 691c3b79
......@@ -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
......@@ -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
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment