summaryrefslogtreecommitdiff
path: root/shell/source/backends/kdebe/kdebackend.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/backends/kdebe/kdebackend.cxx')
-rw-r--r--shell/source/backends/kdebe/kdebackend.cxx11
1 files changed, 5 insertions, 6 deletions
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 }
};
}