Skip to content
Snippets Groups Projects
Commit cdd0312e authored by Michael Davis's avatar Michael Davis
Browse files

Uses cta::make_unique instead of defining it again

parent 78db12c8
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <common/make_unique.hpp>
#include "XrdSsiPbIStreamBuffer.hpp"
#include "RmcdClient.hpp"
......@@ -28,14 +29,6 @@
bool is_metadata_done = false;
// note: this implementation does not disable this overload for array types
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
// Define XRootD SSI callbacks
namespace XrdSsiPb {
......@@ -222,7 +215,7 @@ RmcdClientCmd::RmcdClientCmd(int argc, char *const *const argv) :
// Obtain a Service Provider
std::string resource("/rmc_test");
m_rmc_test_service_ptr = std::make_unique<XrdSsiPbServiceType>(m_endpoint, resource, config);
m_rmc_test_service_ptr = cta::make_unique<XrdSsiPbServiceType>(m_endpoint, resource, config);
}
void RmcdClientCmd::processMount(int argc, char *const *const argv) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment