diff --git a/src/lib/caching/kshareddatacache.h b/src/lib/caching/kshareddatacache.h --- a/src/lib/caching/kshareddatacache.h +++ b/src/lib/caching/kshareddatacache.h @@ -82,6 +82,9 @@ unsigned expectedItemSize = 0); ~KSharedDataCache(); + KSharedDataCache(const KSharedDataCache &) = delete; + KSharedDataCache &operator=(const KSharedDataCache &) = delete; + enum EvictionPolicy { // The default value for data in our shared memory will be 0, so it is // important that whatever we want for the default value is also 0. diff --git a/src/lib/util/kdelibs4configmigrator.h b/src/lib/util/kdelibs4configmigrator.h --- a/src/lib/util/kdelibs4configmigrator.h +++ b/src/lib/util/kdelibs4configmigrator.h @@ -50,6 +50,9 @@ */ ~Kdelibs4ConfigMigrator(); + Kdelibs4ConfigMigrator(const Kdelibs4ConfigMigrator &) = delete; + Kdelibs4ConfigMigrator &operator=(const Kdelibs4ConfigMigrator &) = delete; + /** * Migrate the files, if any. * diff --git a/src/lib/util/kdelibs4migration.h b/src/lib/util/kdelibs4migration.h --- a/src/lib/util/kdelibs4migration.h +++ b/src/lib/util/kdelibs4migration.h @@ -81,6 +81,9 @@ */ ~Kdelibs4Migration(); + Kdelibs4Migration(const Kdelibs4Migration &) = delete; + Kdelibs4Migration &operator=(const Kdelibs4Migration &) = delete; + /** * Returns true if a "kdehome" was found. * Otherwise, there is nothing to migrate.