telepathy-qt: Use 'struct Private' instead of 'class Private' in declarations
George Kiagiadakis
gkiagia at kemper.freedesktop.org
Sun Sep 25 09:20:35 UTC 2016
Module: telepathy-qt
Branch: master
Commit: 6ee46c582413711b379a0bbb7b758b8cb74db201
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=6ee46c582413711b379a0bbb7b758b8cb74db201
Author: George Kiagiadakis <gkiagia at tolabaki.gr>
Date: Sun Sep 25 12:13:10 2016 +0300
Use 'struct Private' instead of 'class Private' in declarations
Private structures are actually defined as 'struct' in the code.
gcc does not complain about it, but other compilers will.
---
TelepathyQt/base-call.h | 4 ++--
TelepathyQt/base-connection-manager.h | 4 ++--
TelepathyQt/base-protocol.h | 8 ++++----
TelepathyQt/dbus-object.h | 4 ++--
TelepathyQt/dbus-service.h | 8 ++++----
TelepathyQt/io-device.h | 4 ++--
6 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/TelepathyQt/base-call.h b/TelepathyQt/base-call.h
index c42d4fb..4d8baeb 100644
--- a/TelepathyQt/base-call.h
+++ b/TelepathyQt/base-call.h
@@ -54,8 +54,8 @@ public:
private:
friend class BaseCallContent;
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
diff --git a/TelepathyQt/base-connection-manager.h b/TelepathyQt/base-connection-manager.h
index e7b1efb..3695d4e 100644
--- a/TelepathyQt/base-connection-manager.h
+++ b/TelepathyQt/base-connection-manager.h
@@ -100,8 +100,8 @@ private:
class Adaptee;
friend class Adaptee;
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
diff --git a/TelepathyQt/base-protocol.h b/TelepathyQt/base-protocol.h
index 0526d65..39016f4 100644
--- a/TelepathyQt/base-protocol.h
+++ b/TelepathyQt/base-protocol.h
@@ -125,8 +125,8 @@ private:
friend class BaseConnectionManager;
class Adaptee;
friend class Adaptee;
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
@@ -142,8 +142,8 @@ public:
private:
friend class BaseProtocol;
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
diff --git a/TelepathyQt/dbus-object.h b/TelepathyQt/dbus-object.h
index 0ed19af..398d1ab 100644
--- a/TelepathyQt/dbus-object.h
+++ b/TelepathyQt/dbus-object.h
@@ -52,8 +52,8 @@ protected:
void setObjectPath(const QString &path);
private:
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
friend class DBusService;
diff --git a/TelepathyQt/dbus-service.h b/TelepathyQt/dbus-service.h
index d584b89..cc51cb2 100644
--- a/TelepathyQt/dbus-service.h
+++ b/TelepathyQt/dbus-service.h
@@ -65,8 +65,8 @@ protected:
DBusError *error);
private:
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
@@ -94,8 +94,8 @@ public:
bool notifyPropertyChanged(const QString &propertyName, const QVariant &propertyValue);
private:
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
diff --git a/TelepathyQt/io-device.h b/TelepathyQt/io-device.h
index da8493f..8cf1b5b 100644
--- a/TelepathyQt/io-device.h
+++ b/TelepathyQt/io-device.h
@@ -48,8 +48,8 @@ protected:
qint64 writeData(const char *data, qint64 maxSize);
private:
- class Private;
- friend class Private;
+ struct Private;
+ friend struct Private;
Private *mPriv;
};
More information about the telepathy-commits
mailing list