[telepathy-qt4/master] Use struct Private instead of class Private for consistence.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Aug 11 19:42:01 PDT 2009


---
 TelepathyQt4/connection-manager.h |    4 ++--
 TelepathyQt4/dbus-proxy.cpp       |    3 +--
 TelepathyQt4/dbus-proxy.h         |   12 ++++++------
 3 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/TelepathyQt4/connection-manager.h b/TelepathyQt4/connection-manager.h
index 1606cbc..fd1e527 100644
--- a/TelepathyQt4/connection-manager.h
+++ b/TelepathyQt4/connection-manager.h
@@ -101,8 +101,8 @@ private:
 
     void addParameter(const ParamSpec &spec);
 
-    class Private;
-    friend class Private;
+    struct Private;
+    friend struct Private;
     friend class ConnectionManager;
     Private *mPriv;
 };
diff --git a/TelepathyQt4/dbus-proxy.cpp b/TelepathyQt4/dbus-proxy.cpp
index 8c829fd..2511dd3 100644
--- a/TelepathyQt4/dbus-proxy.cpp
+++ b/TelepathyQt4/dbus-proxy.cpp
@@ -78,9 +78,8 @@ namespace Tp
 // * making methods always raise an error when called after invalidated
 //   (has to be in the generated code)
 
-class DBusProxy::Private
+struct DBusProxy::Private
 {
-public:
     QDBusConnection dbusConnection;
     QString busName;
     QString objectPath;
diff --git a/TelepathyQt4/dbus-proxy.h b/TelepathyQt4/dbus-proxy.h
index 5471260..7ea4590 100644
--- a/TelepathyQt4/dbus-proxy.h
+++ b/TelepathyQt4/dbus-proxy.h
@@ -65,8 +65,8 @@ private Q_SLOTS:
     void emitInvalidated();
 
 private:
-    class Private;
-    friend class Private;
+    struct Private;
+    friend struct Private;
     Private *mPriv;
 };
 
@@ -83,8 +83,8 @@ public:
     virtual ~StatelessDBusProxy();
 
 private:
-    class Private;
-    friend class Private;
+    struct Private;
+    friend struct Private;
     Private *mPriv;
 };
 
@@ -105,8 +105,8 @@ private Q_SLOTS:
             const QString &newOwner);
 
 private:
-    class Private;
-    friend class Private;
+    struct Private;
+    friend struct Private;
     Private *mPriv;
 };
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list