From 97c28ad74f09da7337119f3acf2e6b911b48523f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 27 Oct 2016 20:49:24 +0200 Subject: Various loplugin warnings in --enable-telepathy Change-Id: I4c437491466c3029f2a9c93fb630c7b5a8d2ff21 --- tubes/source/collaboration.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tubes/source/collaboration.cxx') diff --git a/tubes/source/collaboration.cxx b/tubes/source/collaboration.cxx index a6e5ec09b760..ce097b2c38b6 100644 --- a/tubes/source/collaboration.cxx +++ b/tubes/source/collaboration.cxx @@ -12,9 +12,10 @@ #include #include +#include + Collaboration::Collaboration() : - mpConference( NULL ), - mpContacts( NULL ) + mpConference( nullptr ) { TeleManager::registerCollaboration( this ); } @@ -40,10 +41,17 @@ void Collaboration::Invite( TpContact* pContact ) const } } +void Collaboration::DisplayContacts() +{ + if (!mpContacts) + mpContacts = VclPtr::Create( this ); + mpContacts->Populate(); +} + void Collaboration::SendFile( TpContact* pContact, const OUString& rURL ) const { if (mpConference) - mpConference->sendFile( pContact, rURL, NULL, NULL ); + mpConference->sendFile( pContact, rURL, nullptr, nullptr ); } void Collaboration::SendPacket( const OString& rPacket ) const -- cgit