MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / Variant

Method Variant

src/Variant.cpp:98–107  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

96
97////////////////////////////////////////////////////////////////////////////////
98Variant::Variant(const Variant& other) {
99 _type = other._type;
100 _bool = other._bool;
101 _integer = other._integer;
102 _real = other._real;
103 _string = other._string;
104 _date = other._date;
105 _duration = other._duration;
106 _source = other._source;
107}
108
109////////////////////////////////////////////////////////////////////////////////
110Variant::Variant(const bool value) : _type(Variant::type_boolean), _bool(value) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected