@@ -450,37 +450,34 @@ LLMarketplaceInventoryImporter::LLMarketplaceInventoryImporter()
450
450
, mImportInProgress(false )
451
451
, mInitialized(false )
452
452
, mMarketPlaceStatus(MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED)
453
- , mErrorInitSignal(NULL )
454
- , mStatusChangedSignal(NULL )
455
- , mStatusReportSignal(NULL )
456
453
{
457
454
}
458
455
459
456
boost::signals2::connection LLMarketplaceInventoryImporter::setInitializationErrorCallback (const status_report_signal_t ::slot_type& cb)
460
457
{
461
- if (mErrorInitSignal == NULL )
458
+ if (mErrorInitSignal == nullptr )
462
459
{
463
- mErrorInitSignal = new status_report_signal_t ();
460
+ mErrorInitSignal = std::make_unique< status_report_signal_t > ();
464
461
}
465
462
466
463
return mErrorInitSignal ->connect (cb);
467
464
}
468
465
469
466
boost::signals2::connection LLMarketplaceInventoryImporter::setStatusChangedCallback (const status_changed_signal_t ::slot_type& cb)
470
467
{
471
- if (mStatusChangedSignal == NULL )
468
+ if (mStatusChangedSignal == nullptr )
472
469
{
473
- mStatusChangedSignal = new status_changed_signal_t ();
470
+ mStatusChangedSignal = std::make_unique< status_changed_signal_t > ();
474
471
}
475
472
476
473
return mStatusChangedSignal ->connect (cb);
477
474
}
478
475
479
476
boost::signals2::connection LLMarketplaceInventoryImporter::setStatusReportCallback (const status_report_signal_t ::slot_type& cb)
480
477
{
481
- if (mStatusReportSignal == NULL )
478
+ if (mStatusReportSignal == nullptr )
482
479
{
483
- mStatusReportSignal = new status_report_signal_t ();
480
+ mStatusReportSignal = std::make_unique< status_report_signal_t > ();
484
481
}
485
482
486
483
return mStatusReportSignal ->connect (cb);
@@ -717,8 +714,6 @@ LLMarketplaceTuple::LLMarketplaceTuple(const LLUUID& folder_id, S32 listing_id,
717
714
LLMarketplaceData::LLMarketplaceData () :
718
715
mMarketPlaceStatus(MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED),
719
716
mMarketPlaceDataFetched(MarketplaceFetchCodes::MARKET_FETCH_NOT_DONE),
720
- mStatusUpdatedSignal(NULL ),
721
- mDataFetchedSignal(NULL ),
722
717
mDirtyCount(false )
723
718
{
724
719
mInventoryObserver = new LLMarketplaceInventoryObserver;
@@ -752,9 +747,9 @@ LLSD LLMarketplaceData::getMarketplaceStringSubstitutions()
752
747
753
748
void LLMarketplaceData::initializeSLM (const status_updated_signal_t ::slot_type& cb)
754
749
{
755
- if (mStatusUpdatedSignal == NULL )
750
+ if (mStatusUpdatedSignal == nullptr )
756
751
{
757
- mStatusUpdatedSignal = new status_updated_signal_t ();
752
+ mStatusUpdatedSignal = std::make_unique< status_updated_signal_t > ();
758
753
}
759
754
mStatusUpdatedSignal ->connect (cb);
760
755
@@ -842,7 +837,7 @@ void LLMarketplaceData::setDataFetchedSignal(const status_updated_signal_t::slot
842
837
{
843
838
if (mDataFetchedSignal == NULL )
844
839
{
845
- mDataFetchedSignal = new status_updated_signal_t ();
840
+ mDataFetchedSignal = std::make_unique< status_updated_signal_t > ();
846
841
}
847
842
mDataFetchedSignal ->connect (cb);
848
843
}
0 commit comments