BPicture: Fix archive constructor.
[haiku.git] / src / kits / locale / IntegerFormatParameters.cpp
blob236297a8b21fd522c9d6784c05825267212093e4
1 #include <IntegerFormatParameters.h>
3 // constructor
4 BIntegerFormatParameters::BIntegerFormatParameters(
5 const BIntegerFormatParameters *parent)
6 : BNumberFormatParameters(parent),
7 fParent(parent)
11 // copy constructor
12 BIntegerFormatParameters::BIntegerFormatParameters(
13 const BIntegerFormatParameters &other)
14 : BNumberFormatParameters(other),
15 fParent(other.fParent)
19 // destructor
20 BIntegerFormatParameters::~BIntegerFormatParameters()
24 // SetParentIntegerParameters
25 void
26 BIntegerFormatParameters::SetParentIntegerParameters(
27 const BIntegerFormatParameters *parent)
29 fParent = parent;
30 SetParentNumberParameters(parent);
33 // ParentIntegerParameters
34 const BIntegerFormatParameters *
35 BIntegerFormatParameters::ParentIntegerParameters() const
37 return fParent;
40 // =
41 BIntegerFormatParameters &
42 BIntegerFormatParameters::operator=(const BIntegerFormatParameters &other)
44 BNumberFormatParameters::operator=(other);
45 fParent = other.fParent;
46 return *this;