summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-16 20:14:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-16 21:51:15 +0100
commit74a8d26a8907c6e00e29f054178a3425f44e38ed (patch)
treefd700ba8471edcbd6e9e6481a3ca1397397a2d5d /src/lib/server.cc
parentc2909b61d360510241ef37abd255269bd8aa9526 (diff)
Very basics of colour conversion configuration.
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc6
1 files changed, 3 insertions, 3 deletions
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>
ServerDescription::create_from_metadata (string v)
{
vector<string> b;
split (b, v, is_any_of (N_(" ")));
if (b.size() != 2) {
- return 0;
+ return shared_ptr<ServerDescription> ();
}
- return new ServerDescription (b[0], atoi (b[1].c_str ()));
+ return shared_ptr<ServerDescription> (new ServerDescription (b[0], atoi (b[1].c_str ())));
}
Server::Server (shared_ptr<Log> log)