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
parent
31e414d36e
commit
9fb3bd05a8
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue