MCPcopy Create free account
hub / github.com/cuberite/cuberite / addPathInArg

Method addPathInArg

lib/jsoncpp/src/lib_json/json_value.cpp:1611–1629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1609
1610
1611void
1612Path::addPathInArg( const std::string &path,
1613 const InArgs &in,
1614 InArgs::const_iterator &itInArg,
1615 PathArgument::Kind kind )
1616{
1617 if ( itInArg == in.end() )
1618 {
1619 // Error: missing argument %d
1620 }
1621 else if ( (*itInArg)->kind_ != kind )
1622 {
1623 // Error: bad argument type
1624 }
1625 else
1626 {
1627 args_.push_back( **itInArg );
1628 }
1629}
1630
1631
1632void

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected