use boost:make_shared more widely - refs #909
This commit is contained in:
parent
f04bbb0b10
commit
8420e8a9c6
5 changed files with 7 additions and 5 deletions
|
@ -26,6 +26,7 @@
|
|||
#define CONNECTION_HPP
|
||||
|
||||
#include <mapnik/datasource.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
@ -98,7 +99,7 @@ class Connection
|
|||
throw mapnik::datasource_exception( s.str() );
|
||||
}
|
||||
|
||||
return boost::shared_ptr<ResultSet>(new ResultSet(result));
|
||||
return boost::make_shared<ResultSet>(result);
|
||||
}
|
||||
|
||||
std::string client_encoding() const
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <mapnik/utils.hpp>
|
||||
#include "connection.hpp"
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#ifdef MAPNIK_THREADSAFE
|
||||
|
@ -111,7 +112,7 @@ public:
|
|||
if (pools_.find(creator.id())==pools_.end())
|
||||
{
|
||||
return pools_.insert(std::make_pair(creator.id(),
|
||||
boost::shared_ptr<PoolType>(new PoolType(creator,initialSize,maxSize)))).second;
|
||||
boost::make_shared<PoolType>(creator,initialSize,maxSize))).second;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -1115,7 +1115,7 @@ void cairo_renderer_base::process(shield_symbolizer const& sym,
|
|||
}
|
||||
else
|
||||
{
|
||||
marker.reset(boost::shared_ptr<mapnik::marker> (new mapnik::marker()));
|
||||
marker.reset(boost::make_shared<mapnik::marker>());
|
||||
}
|
||||
|
||||
if (text.length() > 0 && marker)
|
||||
|
|
|
@ -50,7 +50,7 @@ void grid_renderer<T>::process(point_symbolizer const& sym,
|
|||
}
|
||||
else
|
||||
{
|
||||
marker.reset(boost::shared_ptr<mapnik::marker> (new mapnik::marker()));
|
||||
marker.reset(boost::make_shared<mapnik::marker>());
|
||||
}
|
||||
|
||||
if (marker)
|
||||
|
|
|
@ -89,7 +89,7 @@ void grid_renderer<T>::process(shield_symbolizer const& sym,
|
|||
}
|
||||
else
|
||||
{
|
||||
marker.reset(boost::shared_ptr<mapnik::marker> (new mapnik::marker()));
|
||||
marker.reset(boost::make_shared<mapnik::marker>());
|
||||
}
|
||||
|
||||
if (text.length() > 0 && marker)
|
||||
|
|
Loading…
Reference in a new issue