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

Method trivial

src/Variant.cpp:2079–2083  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2077
2078////////////////////////////////////////////////////////////////////////////////
2079bool Variant::trivial() const {
2080 return (_type == type_integer && _integer == 0) || (_type == type_real && _real == 0.0) ||
2081 (_type == type_string && _string == "") || (_type == type_date && _date == 0) ||
2082 (_type == type_duration && _duration == 0);
2083}
2084
2085////////////////////////////////////////////////////////////////////////////////
2086bool Variant::get_bool() const { return _bool; }

Callers 6

operator<Method · 0.80
operator<=Method · 0.80
operator>Method · 0.80
operator>=Method · 0.80
operator==Method · 0.80
operator_partialMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected