MCPcopy Create free account
hub / github.com/apache/trafficserver / operator==

Method operator==

src/proxy/logging/LogField.cc:641–649  ·  view source on GitHub ↗

------------------------------------------------------------------------- LogField::operator== This operator does only care of the name and m_symbol, may need do check on others layter. -------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

639 do check on others layter.
640 -------------------------------------------------------------------------*/
641bool
642LogField::operator==(LogField &rhs)
643{
644 if (strcmp(name(), rhs.name()) || strcmp(symbol(), rhs.symbol())) {
645 return false;
646 } else {
647 return true;
648 }
649}
650
651/*-------------------------------------------------------------------------
652 -------------------------------------------------------------------------*/

Callers

nothing calls this directly

Calls 3

strcmpFunction · 0.85
nameMethod · 0.45
symbolMethod · 0.45

Tested by

no test coverage detected