Skip to content

Commit

Permalink
add NullStream::get_ptr()
Browse files Browse the repository at this point in the history
Change-Id: Idf2161f2b81d891886d3632df560611aa13fb2b7
Reviewed-on: https://gerrit.dechocorp.com/14716
Reviewed-by: Pancho Avila <panchoa@mozy.com>
  • Loading branch information
Jeremy Stanley authored and Jeremy Stanley committed Jan 4, 2011
1 parent 9ab1f65 commit 4f5e325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mordor/streams/null.h
Expand Up @@ -3,6 +3,7 @@
// Copyright (c) 2009 - Mozy, Inc.

#include "stream.h"
#include "mordor/util.h"

namespace Mordor {

Expand All @@ -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<Stream *>); }

bool supportsRead() { return true; }
bool supportsWrite() { return true; }
Expand Down

0 comments on commit 4f5e325

Please sign in to comment.