diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:23:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:38 +0100 |
commit | 92c697c0e3e4bde88424322875c993c161696b1e (patch) | |
tree | ea1be62a0cb8fd7f7e63dd03a52441cedd8e96eb /sd/source/ui/view/WindowUpdater.cxx | |
parent | 65464ed0985802edb96dbcbd1c3eed996f3778bd (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: If1b80da64ba575f07b31dce9bc0e34b7eb9f11a4
Diffstat (limited to 'sd/source/ui/view/WindowUpdater.cxx')
-rw-r--r-- | sd/source/ui/view/WindowUpdater.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/view/WindowUpdater.cxx b/sd/source/ui/view/WindowUpdater.cxx index 4a2e0aa0f6aa..3dac87aabae2 100644 --- a/sd/source/ui/view/WindowUpdater.cxx +++ b/sd/source/ui/view/WindowUpdater.cxx @@ -33,8 +33,8 @@ namespace sd { WindowUpdater::WindowUpdater() - : mpViewShell (NULL), - mpDocument (NULL) + : mpViewShell (nullptr), + mpDocument (nullptr) { maCTLOptions.AddListener(this); } @@ -46,7 +46,7 @@ WindowUpdater::~WindowUpdater() throw () void WindowUpdater::RegisterWindow (vcl::Window* pWindow) { - if (pWindow != NULL) + if (pWindow != nullptr) { tWindowList::iterator aWindowIterator ( ::std::find ( @@ -85,17 +85,17 @@ void WindowUpdater::Update ( OutputDevice* pDevice, SdDrawDocument* pDocument) const { - if (pDevice != NULL) + if (pDevice != nullptr) { UpdateWindow (pDevice); - if (pDocument != NULL) + if (pDocument != nullptr) pDocument->ReformatAllTextObjects(); } } void WindowUpdater::UpdateWindow (OutputDevice* pDevice) const { - if (pDevice != NULL) + if (pDevice != nullptr) { SvtCTLOptions::TextNumerals aNumeralMode (maCTLOptions.GetCTLTextNumerals()); @@ -132,7 +132,7 @@ void WindowUpdater::ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uI Update (*aWindowIterator++); // Reformat the document for the modified state to take effect. - if (mpDocument != NULL) + if (mpDocument != nullptr) mpDocument->ReformatAllTextObjects(); // Invalidate the windows to make the modified state visible. |