From 74a8d26a8907c6e00e29f054178a3425f44e38ed Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 16 Aug 2013 20:14:33 +0100 Subject: Very basics of colour conversion configuration. --- src/lib/server.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/server.cc') diff --git a/src/lib/server.cc b/src/lib/server.cc index 37a076a54..54cffc077 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -68,17 +68,17 @@ ServerDescription::as_xml (xmlpp::Node* root) const * @param v Metadata. * @return ServerDescription, or 0. */ -ServerDescription * +shared_ptr ServerDescription::create_from_metadata (string v) { vector b; split (b, v, is_any_of (N_(" "))); if (b.size() != 2) { - return 0; + return shared_ptr (); } - return new ServerDescription (b[0], atoi (b[1].c_str ())); + return shared_ptr (new ServerDescription (b[0], atoi (b[1].c_str ()))); } Server::Server (shared_ptr log) -- cgit v1.2.3