MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / empty_if_null

Function empty_if_null

lib/utils.h:421–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420template<typename T>
421static inline T* empty_if_null(T* p)
422{
423 return default_if_null(p, "");
424}
425
426/**
427 * Split string by given separator.

Callers 5

parseXmlFileMethod · 0.85
readAttrStringFunction · 0.85
importPropertyGroupFunction · 0.85
parseFromArgsMethod · 0.85

Calls 1

default_if_nullFunction · 0.85

Tested by

no test coverage detected