MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / operator||

Method operator||

src/Variant.cpp:163–175  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

161
162////////////////////////////////////////////////////////////////////////////////
163bool Variant::operator||(const Variant& other) const {
164 Variant left(*this);
165 Variant right(other);
166
167 if (left._type == type_string) Lexer::dequote(left._string);
168
169 if (right._type == type_string) Lexer::dequote(right._string);
170
171 left.cast(type_boolean);
172 right.cast(type_boolean);
173
174 return left._bool || right._bool;
175}
176
177////////////////////////////////////////////////////////////////////////////////
178bool Variant::operator_xor(const Variant& other) const {

Callers

nothing calls this directly

Calls 1

castMethod · 0.80

Tested by

no test coverage detected