reporting: use end keyword in simplified syntax
parent
691c3b79f8
commit
95ee0857b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue