diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-14 06:25:35 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-06-19 21:41:57 +0300 |
commit | 60c5e3cf25e0966fa7ec5f90d5e04404e7fae81f (patch) | |
tree | 88f6098cf5c402094d973a8cb16eb36ea232f4c6 /templatelayout.cpp | |
parent | 42b9d0d047abfa9b7816f59d00a0ed0f87368975 (diff) | |
download | subsurface-60c5e3cf25e0966fa7ec5f90d5e04404e7fae81f.tar.gz |
Printing: pass the print_options struct to TemplateLayout and Printer
As the print_options struct is needed by both TemplateLayout and Printer
class, it can be passed to their constructor.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'templatelayout.cpp')
-rw-r--r-- | templatelayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templatelayout.cpp b/templatelayout.cpp index 6083d7b91..33b96086e 100644 --- a/templatelayout.cpp +++ b/templatelayout.cpp @@ -16,8 +16,9 @@ int getTotalWork() return dives; } -TemplateLayout::TemplateLayout() +TemplateLayout::TemplateLayout(print_options *PrintOptions) { + this->PrintOptions = PrintOptions; } TemplateLayout::~TemplateLayout() |