Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPage.cpp
Show All 28 Lines | |||||
29 | #include <QTimer> | 29 | #include <QTimer> | ||
30 | 30 | | |||
31 | //! @internal | 31 | //! @internal | ||
32 | class Q_DECL_HIDDEN KReportPage::Private | 32 | class Q_DECL_HIDDEN KReportPage::Private | ||
33 | { | 33 | { | ||
34 | public: | 34 | public: | ||
35 | explicit Private(ORODocument *document) | 35 | explicit Private(ORODocument *document) | ||
36 | : reportDocument(document) | 36 | : reportDocument(document) | ||
37 | , page(0) | | |||
38 | {} | 37 | {} | ||
39 | 38 | | |||
40 | ~Private() | 39 | ~Private() | ||
41 | { | 40 | { | ||
42 | delete renderer; | 41 | delete renderer; | ||
43 | } | 42 | } | ||
44 | 43 | | |||
45 | ORODocument *reportDocument; | 44 | ORODocument *reportDocument = nullptr; | ||
staniek: not needed, it's properly initialized | |||||
46 | int page; | 45 | int page = 0; | ||
47 | QPixmap pixmap; | 46 | QPixmap pixmap; | ||
48 | KReportRendererFactory factory; | 47 | KReportRendererFactory factory; | ||
49 | KReportRendererBase *renderer; | 48 | KReportRendererBase *renderer = nullptr; | ||
staniek: not needed, I propose to mark as a false positive | |||||
50 | | ||||
51 | QTimer renderTimer; | 49 | QTimer renderTimer; | ||
52 | }; | 50 | }; | ||
53 | 51 | | |||
54 | 52 | | |||
55 | KReportPage::KReportPage(QWidget *parent, ORODocument *document) | 53 | KReportPage::KReportPage(QWidget *parent, ORODocument *document) | ||
56 | : QObject(parent), QGraphicsRectItem() | 54 | : QObject(parent), QGraphicsRectItem() | ||
57 | , d(new Private(document)) | 55 | , d(new Private(document)) | ||
58 | { | 56 | { | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |
not needed, it's properly initialized