Changeset 7443


Ignore:
Timestamp:
2004-05-26T14:52:32+12:00 (20 years ago)
Author:
mdewsnip
Message:

(Human Info) Delete char* variables with delete [] instead of delete, and use ++here instead of here++ for iterators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.cpp

    r7421 r7443  
    241241      while (here != end) {
    242242    configinfo.macrofiles.insert (*here);
    243     here ++;
     243    ++here;
    244244      }
    245245    }
     
    304304      shortname = substr (cfglinesub_here, (*cfgline_here).end());
    305305    }
    306     cfgline_here++;
     306    ++cfgline_here;
    307307      }
    308308
     
    338338      }
    339339     
    340       cfgline_here++;
     340      ++cfgline_here;
    341341    }
    342342      }
     
    362362      lang.defaultencoding = substr (cfglinesub_here, (*cfgline_here).end());
    363363    }
    364     cfgline_here++;
     364    ++cfgline_here;
    365365      }
    366366      if (!shortname.empty()) {
     
    393393      (*protohere).p->configure(key, cfgline, err);
    394394   
    395     protohere++;
     395    ++protohere;
    396396  }
    397397
     
    405405      (*browserhere).second.b->configure(key, cfgline);
    406406   
    407     browserhere++;
     407    ++browserhere;
    408408  }
    409409}
     
    506506    if (((*protohere).p == NULL) ||
    507507    !(*protohere).p->init(err, logout)) return false;
    508     protohere++;
     508    ++protohere;
    509509  }
    510510
     
    515515    if (((*browserhere).second.b == NULL) ||
    516516    !(*browserhere).second.b->init(logout)) return false;
    517     browserhere++;
     517    ++browserhere;
    518518  }
    519519
     
    635635      return true;
    636636    }
    637     here++;
     637    ++here;
    638638    here = findchar (here, end, 'G');
    639639  }
     
    663663    while (here+9 < end) {
    664664      if (substr(here, here+8) == "GSDL_UID") return true;
    665       here++;
     665      ++here;
    666666      here = findchar (here, end, 'G');
    667667    }
     
    689689    argstr += (*args_here).first + "=" + (*args_here).second.value;
    690690    first = false;
    691     args_here ++;
     691    ++args_here;
    692692  }
    693693
     
    796796      strftime (timestr, 128, "%a, %d %b %Y %H:%M:%S", tm_ptr);
    797797      contentout << "Last-Modified: " << timestr << " GMT\n"; // always modified
    798       delete timestr;
     798      delete []timestr;
    799799    }
    800800    contentout << "Cache-Control: no-cache, must-revalidate\n"; // HTTP/1.1
     
    15741574      }
    15751575    }
    1576     cfgline_here++;
     1576    ++cfgline_here;
    15771577  }
    15781578  if (!shortname.empty()) {
Note: See TracChangeset for help on using the changeset viewer.