mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
do not add Q_NOREPLY to output from qdbusxml2cpp
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
7b9c6121c8
commit
2409d77bdb
1 changed files with 2 additions and 5 deletions
|
@ -674,7 +674,7 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf
|
||||||
<< (isDeprecated ? "Q_DECL_DEPRECATED " : "");
|
<< (isDeprecated ? "Q_DECL_DEPRECATED " : "");
|
||||||
|
|
||||||
if (isNoReply) {
|
if (isNoReply) {
|
||||||
hs << "Q_NOREPLY void ";
|
hs << "void ";
|
||||||
} else {
|
} else {
|
||||||
hs << "QDBusPendingReply<";
|
hs << "QDBusPendingReply<";
|
||||||
for (int i = 0; i < method.outputArgs.count(); ++i)
|
for (int i = 0; i < method.outputArgs.count(); ++i)
|
||||||
|
@ -1002,10 +1002,7 @@ static void writeAdaptor(const QString &filename, const QDBusIntrospection::Inte
|
||||||
hs << "Q_DECL_DEPRECATED ";
|
hs << "Q_DECL_DEPRECATED ";
|
||||||
|
|
||||||
QByteArray returnType;
|
QByteArray returnType;
|
||||||
if (isNoReply) {
|
if (isNoReply || method.outputArgs.isEmpty()) {
|
||||||
hs << "Q_NOREPLY void ";
|
|
||||||
cs << "void ";
|
|
||||||
} else if (method.outputArgs.isEmpty()) {
|
|
||||||
hs << "void ";
|
hs << "void ";
|
||||||
cs << "void ";
|
cs << "void ";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue