summaryrefslogtreecommitdiffstats
path: root/dcop/kdatastream.h
blob: 345d46d876e58ad1d6c2c68283ed037399343a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __kdatastream__h
#define __kdatastream__h

#include <tqdatastream.h>

inline TQDataStream & operator << (TQDataStream & str, bool b)
{
  str << TQ_INT8(b);
  return str;
}

inline TQDataStream & operator >> (TQDataStream & str, bool & b)
{
  TQ_INT8 l;
  str >> l;
  b = bool(l);
  return str;
}

#endif