Skip to content

Commit

Permalink
Merge pull request #4250 from jwillemsen/jwi-autoptr
Browse files Browse the repository at this point in the history
Make use of unique_ptr and removed some obsolete includes

(cherry picked from commit 3c7cd94)

# Conflicts:
#	dds/DCPS/Service_Participant.cpp
  • Loading branch information
jrw972 authored and mitza-oci committed Apr 26, 2024
1 parent 6f16832 commit ceaeee4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion dds/DCPS/DataDurabilityCache.h
Expand Up @@ -222,7 +222,6 @@ class DataDurabilityCache {
void init();

private:

/// Allocator used to allocate memory for sample map and lists.
unique_ptr<ACE_Allocator> const allocator_;

Expand Down
1 change: 0 additions & 1 deletion dds/DCPS/DataReaderImpl.cpp
Expand Up @@ -39,7 +39,6 @@
#include <dds/DdsDcpsGuidTypeSupportImpl.h>

#include <ace/Reactor.h>
#include <ace/Auto_Ptr.h>
#include <ace/OS_NS_sys_time.h>

#include <cstdio>
Expand Down
1 change: 0 additions & 1 deletion dds/DCPS/DataWriterImpl.cpp
Expand Up @@ -44,7 +44,6 @@
#include <dds/DdsDcpsGuidTypeSupportImpl.h>

#include <ace/Reactor.h>
#include <ace/Auto_Ptr.h>

#include <stdexcept>

Expand Down
1 change: 0 additions & 1 deletion dds/DCPS/ReplayerImpl.cpp
Expand Up @@ -39,7 +39,6 @@
#include "transport/framework/TransportCustomizedElement.h"

#include "ace/Reactor.h"
#include "ace/Auto_Ptr.h"

#include <stdexcept>

Expand Down
1 change: 0 additions & 1 deletion dds/DCPS/Service_Participant.cpp
Expand Up @@ -32,7 +32,6 @@
#include <ace/Configuration_Import_Export.h>
#include <ace/Service_Config.h>
#include <ace/Argv_Type_Converter.h>
#include <ace/Auto_Ptr.h>
#include <ace/Sched_Params.h>
#include <ace/Malloc_Allocator.h>
#include <ace/OS_NS_unistd.h>
Expand Down
5 changes: 2 additions & 3 deletions dds/DCPS/transport/framework/ThreadPerConnectionSendTask.cpp
Expand Up @@ -15,8 +15,7 @@
#include "EntryExit.h"
#include "dds/DCPS/DataSampleElement.h"
#include "dds/DCPS/Service_Participant.h"

#include "ace/Auto_Ptr.h"
#include "dds/DCPS/unique_ptr.h"

OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL

Expand Down Expand Up @@ -44,7 +43,7 @@ int ThreadPerConnectionSendTask::add_request(SendStrategyOpType op,
{
DBG_ENTRY("ThreadPerConnectionSendTask", "add");

ACE_Auto_Ptr<SendRequest> req(new SendRequest);
unique_ptr<SendRequest> req(new SendRequest);
req->op_ = op;
req->element_ = element;

Expand Down

0 comments on commit ceaeee4

Please sign in to comment.