From 4f5e325c7a3177972792173838bde36522ee4dfa Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 30 Dec 2010 13:54:39 -0700 Subject: [PATCH] add NullStream::get_ptr() Change-Id: Idf2161f2b81d891886d3632df560611aa13fb2b7 Reviewed-on: https://gerrit.dechocorp.com/14716 Reviewed-by: Pancho Avila --- mordor/streams/null.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mordor/streams/null.h b/mordor/streams/null.h index 44c52277..8b1104d4 100644 --- a/mordor/streams/null.h +++ b/mordor/streams/null.h @@ -3,6 +3,7 @@ // Copyright (c) 2009 - Mozy, Inc. #include "stream.h" +#include "mordor/util.h" namespace Mordor { @@ -13,6 +14,7 @@ class NullStream : public Stream public: static NullStream &get() { return s_nullStream; } + static Stream::ptr get_ptr() { return Stream::ptr(&s_nullStream, &nop); } bool supportsRead() { return true; } bool supportsWrite() { return true; }