diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:23:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:38 +0100 |
commit | 28034eaf925aa50d379dd5cffccc20d7edc95aec (patch) | |
tree | 5cde1f141bc0ffc5cb04a12980d0c4bce69de0f0 /sfx2/source/sidebar/AsynchronousCall.cxx | |
parent | d930b6c2e6e3dfb9e1ed19b84a3137cc0cfbfd8c (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I7213b49b09ddcb00841aa5f63343baeab0e65fa4
Diffstat (limited to 'sfx2/source/sidebar/AsynchronousCall.cxx')
-rw-r--r-- | sfx2/source/sidebar/AsynchronousCall.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/sidebar/AsynchronousCall.cxx b/sfx2/source/sidebar/AsynchronousCall.cxx index 13aff881c322..af3f9b60b406 100644 --- a/sfx2/source/sidebar/AsynchronousCall.cxx +++ b/sfx2/source/sidebar/AsynchronousCall.cxx @@ -24,13 +24,13 @@ namespace sfx2 { namespace sidebar { AsynchronousCall::AsynchronousCall() : maAction(), - mnCallId(0) + mnCallId(nullptr) { } AsynchronousCall::AsynchronousCall (const Action& rAction) : maAction(rAction), - mnCallId(0) + mnCallId(nullptr) { } @@ -41,7 +41,7 @@ AsynchronousCall::~AsynchronousCall() void AsynchronousCall::RequestCall() { - if (mnCallId == 0) + if (mnCallId == nullptr) { Link<void*,void> aLink (LINK(this, AsynchronousCall, HandleUserCall)); mnCallId = Application::PostUserEvent(aLink); @@ -50,16 +50,16 @@ void AsynchronousCall::RequestCall() void AsynchronousCall::CancelRequest() { - if (mnCallId != 0) + if (mnCallId != nullptr) { Application::RemoveUserEvent(mnCallId); - mnCallId = 0; + mnCallId = nullptr; } } IMPL_LINK_NOARG_TYPED(AsynchronousCall, HandleUserCall, void*, void ) { - mnCallId = 0; + mnCallId = nullptr; if (maAction) maAction(); } |