Skip to content

Commit

Permalink
fixup! Replace calls to new(). (XRPLF#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
rec committed Aug 10, 2015
1 parent d7a6fbb commit 0de3bed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/ripple/peerfinder/impl/Logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Logic

// The source we are currently fetching.
// This is used to cancel I/O during program exit.
std::shared_ptr <Source> fetchSource;
beast::SharedPtr <Source> fetchSource;

// Configuration settings
Config config;
Expand Down Expand Up @@ -122,7 +122,7 @@ class Logic
Checker& m_checker;

// A list of dynamic sources to consult as a fallback
std::vector <std::shared_ptr <Source>> m_sources;
std::vector <beast::SharedPtr <Source>> m_sources;

clock_type::time_point m_whenBroadcast;

Expand Down Expand Up @@ -1038,13 +1038,13 @@ class Logic
//--------------------------------------------------------------------------

void
addStaticSource (std::shared_ptr <Source> const& source)
addStaticSource (beast::SharedPtr <Source> const& source)
{
fetch (source);
}

void
addSource (std::shared_ptr <Source> const& source)
addSource (beast::SharedPtr <Source> const& source)
{
m_sources.push_back (source);
}
Expand Down Expand Up @@ -1080,7 +1080,7 @@ class Logic
}

// Fetch bootcache addresses from the specified source.
void fetch (std::shared_ptr <Source> const& source)
void fetch (beast::SharedPtr <Source> const& source)
{
Source::Results results;

Expand Down
4 changes: 2 additions & 2 deletions src/ripple/peerfinder/impl/SourceStrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class SourceStringsImp : public SourceStrings

//------------------------------------------------------------------------------

std::shared_ptr <Source>
beast::SharedPtr <Source>
SourceStrings::New (std::string const& name, Strings const& strings)
{
return std::make_shared<SourceStringsImp> (name, strings);
return new SourceStringsImp (name, strings);
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/peerfinder/impl/SourceStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SourceStrings : public Source
public:
using Strings = std::vector <std::string>;

static std::shared_ptr <Source> New (std::string const& name, Strings const& strings);
static beast::SharedPtr <Source> New (std::string const& name, Strings const& strings);
};

}
Expand Down

0 comments on commit 0de3bed

Please sign in to comment.