QDBus: Make QObject * argument to generateSubObjectXml() const

Only const members of the object are used inside the function body.

This addresses a review comment for 0f37c47713

Change-Id: I873d87104eb2483c4388929487d750d4a7d44bf3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Ievgenii Meshcheriakov 2023-08-09 16:00:57 +02:00
parent 31e414d36e
commit 9fb3bd05a8
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static const char peerInterfaceXml[] =
" </method>\n"
" </interface>\n";
static QString generateSubObjectXml(QObject *object)
static QString generateSubObjectXml(const QObject *object)
{
QString retval;
for (const QObject *child : object->children()) {