From f486329a03b8667bd958624937f02edc9af143d1 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Wed, 21 Sep 2016 15:49:36 +0200 Subject: TDE fix some clang plugin based warnings Change-Id: I3b44038e8a889e4c13126fd8d721e53e71ea9ec6 --- shell/source/backends/kdebe/kdebackend.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'shell') diff --git a/shell/source/backends/kdebe/kdebackend.cxx b/shell/source/backends/kdebe/kdebackend.cxx index 738113127444..20059d804bf1 100644 --- a/shell/source/backends/kdebe/kdebackend.cxx +++ b/shell/source/backends/kdebe/kdebackend.cxx @@ -73,7 +73,7 @@ public: Service& operator=(const Service&) = delete; private: - virtual ~Service() {} + virtual ~Service() override {} virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override @@ -146,9 +146,8 @@ Service::Service(): enabled_(false) { if (context.is()) { OUString desktop; context->getValueByName( - OUString("system.desktop-environment")) >>= - desktop; - enabled_ = desktop == "KDE" && KApplication::kApplication() != 0; + "system.desktop-environment") >>= desktop; + enabled_ = desktop == "KDE" && KApplication::kApplication() != nullptr; } } @@ -194,9 +193,9 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( static cppu::ImplementationEntry const services[] = { { &createInstance, &getServiceImplementationName, - &getServiceSupportedServiceNames, &cppu::createSingleComponentFactory, 0, + &getServiceSupportedServiceNames, &cppu::createSingleComponentFactory, nullptr, 0 }, - { 0, 0, 0, 0, 0, 0 } + { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } }; } -- cgit