From 83cdf8affaf23e4c68f28e9cbe9d2a63cb99614c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 20 Sep 2014 15:29:33 -0500 Subject: Fix another case of undefined behaviour (cherry picked from commit 20e7ea1336a0c28c09b22623cb676d83a7fd168b) --- kdecore/network/kresolverworkerbase.cpp | 8 ++++++++ kdecore/network/kresolverworkerbase.h | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'kdecore') diff --git a/kdecore/network/kresolverworkerbase.cpp b/kdecore/network/kresolverworkerbase.cpp index ee6ee1011..f149e2dda 100644 --- a/kdecore/network/kresolverworkerbase.cpp +++ b/kdecore/network/kresolverworkerbase.cpp @@ -140,6 +140,14 @@ void KResolverWorkerBase::releaseResolver() th->releaseResolver(); } +KResolverWorkerFactoryBase::KResolverWorkerFactoryBase() +{ +} + +KResolverWorkerFactoryBase::~KResolverWorkerFactoryBase() +{ +} + void KResolverWorkerFactoryBase::registerNewWorker(KResolverWorkerFactoryBase* factory) { KResolverManager::manager()->registerNewWorker(factory); diff --git a/kdecore/network/kresolverworkerbase.h b/kdecore/network/kresolverworkerbase.h index 4dee33239..e0a676ced 100644 --- a/kdecore/network/kresolverworkerbase.h +++ b/kdecore/network/kresolverworkerbase.h @@ -289,6 +289,12 @@ protected: class KResolverWorkerFactoryBase { public: + // default constructor + KResolverWorkerFactoryBase(); + + // virtual destructor + virtual ~KResolverWorkerFactoryBase(); + virtual KResolverWorkerBase* create() const = 0; /** -- cgit v1.2.1