aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/wildcard/body.cxx
blob: 2b876d2380ff9b702097c39702c32c04fe9925aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// file      : examples/cxx/hybrid/wildcard/body.cxx
// copyright : not copyrighted - public domain

#include "body.hxx"

namespace email
{
  void body::
  body_type (body::type t)
  {
    if (body_type_ == type_binary)
    {
      delete binary_;
      binary_ = 0;
    }

    body_type_ = t;
  }

  void
  destroy_body (void* p, size_t)
  {
    delete static_cast<body*> (p);
  }
}