From 05ccd34825b8fe1beb87012b7ff8f7fe5de6bfb9 Mon Sep 17 00:00:00 2001
From: Volker Krause <vkrause@kde.org>
Date: Sun, 26 Dec 2021 16:45:40 +0100
Subject: [PATCH] Unexport nested private classes

Nested classes follow the export specifiction of their outer class, which
isn't what was intended here.
---
 core/polkitqt1-actiondescription.cpp      | 2 +-
 core/polkitqt1-authority.cpp              | 2 +-
 core/polkitqt1-details.cpp                | 2 +-
 core/polkitqt1-identity.cpp               | 2 +-
 core/polkitqt1-subject.cpp                | 2 +-
 core/polkitqt1-temporaryauthorization.cpp | 2 +-
 gui/polkitqt1-gui-action.cpp              | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/polkitqt1-actiondescription.cpp b/core/polkitqt1-actiondescription.cpp
index c08f5c4..198e1ac 100644
--- a/core/polkitqt1-actiondescription.cpp
+++ b/core/polkitqt1-actiondescription.cpp
@@ -15,7 +15,7 @@
 namespace PolkitQt1
 {

-class ActionDescription::Data : public QSharedData
+class Q_DECL_HIDDEN ActionDescription::Data : public QSharedData
 {
 public:
     Data() {}
diff --git a/core/polkitqt1-authority.cpp b/core/polkitqt1-authority.cpp
index 73dd97e..24173e5 100644
--- a/core/polkitqt1-authority.cpp
+++ b/core/polkitqt1-authority.cpp
@@ -64,7 +64,7 @@ ActionDescription::List actionsToListAndFree(GList *glist)
     return result;
 }

-class Authority::Private
+class Q_DECL_HIDDEN Authority::Private
 {
 public:
     // Polkit will return NULL on failures, hence we use it instead of 0
diff --git a/core/polkitqt1-details.cpp b/core/polkitqt1-details.cpp
index ba107b1..50568ff 100644
--- a/core/polkitqt1-details.cpp
+++ b/core/polkitqt1-details.cpp
@@ -14,7 +14,7 @@
 namespace PolkitQt1
 {

-class Details::Data : public QSharedData
+class Q_DECL_HIDDEN Details::Data : public QSharedData
 {
 public:
     Data() {}
diff --git a/core/polkitqt1-identity.cpp b/core/polkitqt1-identity.cpp
index 0924c5a..24584b8 100644
--- a/core/polkitqt1-identity.cpp
+++ b/core/polkitqt1-identity.cpp
@@ -14,7 +14,7 @@
 namespace PolkitQt1
 {

-class Identity::Data : public QSharedData
+class Q_DECL_HIDDEN Identity::Data : public QSharedData
 {
 public:
     Data() : identity(nullptr) {}
diff --git a/core/polkitqt1-subject.cpp b/core/polkitqt1-subject.cpp
index 3dae3bd..bed7c5e 100644
--- a/core/polkitqt1-subject.cpp
+++ b/core/polkitqt1-subject.cpp
@@ -15,7 +15,7 @@
 namespace PolkitQt1
 {

-class Subject::Data : public QSharedData
+class Q_DECL_HIDDEN Subject::Data : public QSharedData
 {
 public:
     Data()
diff --git a/core/polkitqt1-temporaryauthorization.cpp b/core/polkitqt1-temporaryauthorization.cpp
index ae40f3b..a19841e 100644
--- a/core/polkitqt1-temporaryauthorization.cpp
+++ b/core/polkitqt1-temporaryauthorization.cpp
@@ -13,7 +13,7 @@
 namespace PolkitQt1
 {

-class TemporaryAuthorization::Data : public QSharedData
+class Q_DECL_HIDDEN TemporaryAuthorization::Data : public QSharedData
 {
 public:
     Data() {}
diff --git a/gui/polkitqt1-gui-action.cpp b/gui/polkitqt1-gui-action.cpp
index 324ce56..38354b0 100644
--- a/gui/polkitqt1-gui-action.cpp
+++ b/gui/polkitqt1-gui-action.cpp
@@ -22,7 +22,7 @@ namespace Gui
 /**
   * \internal
   */
-class Action::Private
+class Q_DECL_HIDDEN Action::Private
 {
 public:
     Private(Action *p);
--
GitLab

