blob: 61ae5b741ccd4487eb8473c51290681d610ce1c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include "common/ostream_temp.h"
OstreamTemp::OstreamTemp(clog_type type_, OstreamTempSink *parent_)
: type(type_), parent(parent_)
{
}
OstreamTemp::~OstreamTemp()
{
if (ss.peek() != EOF && parent)
parent->do_log(type, ss);
}
|