typedef std::pair<std::string, ConstElementPtr> maptype;
BOOST_FOREACH(maptype m, data->mapValue()) {
- bool found = false;
// Ignore 'version' as a config element
if (m.first.compare("version") != 0) {
+ bool found = false;
BOOST_FOREACH(ConstElementPtr cur_spec_el, spec->listValue()) {
if (cur_spec_el->get("item_name")->stringValue().compare(m.first) == 0) {
found = true;
string& name, string& extension) const
{
directory = name = extension = "";
- bool dir_present = false;
if (!full_name.empty()) {
+ bool dir_present = false;
// Find the directory.
size_t last_slash = full_name.find_last_of('/');
if (last_slash != string::npos) {
string
trim(const string& instring) {
- static const char* blanks = " \t\n";
-
string retstring = "";
if (!instring.empty()) {
+ static const char* blanks = " \t\n";
// Search for first non-blank character in the string
size_t first = instring.find_first_not_of(blanks);