* at least one syntactically invalid byte-range-specs.
*/
if (!spec) {
- while (!specs.empty())
- delete specs.pop_back();
+ while (!specs.empty()) {
+ delete specs.back();
+ specs.pop_back();
+ }
debugs(64, 2, "ignoring invalid range field: '" << range_spec << "'");
break;
}
HttpHdrRange::~HttpHdrRange()
{
- while (specs.size())
- delete specs.pop_back();
+ while (specs.size()) {
+ delete specs.back();
+ specs.pop_back();
+ }
}
HttpHdrRange::HttpHdrRange(HttpHdrRange const &old) :
while (i != basis.end()) {
if (specs.size() && (*i)->mergeWith(specs.back())) {
/* merged with current so get rid of the prev one */
- delete specs.pop_back();
+ delete specs.back();
+ specs.pop_back();
continue; /* re-iterate */
}
NotePairs::~NotePairs()
{
- while (!entries.empty())
- delete entries.pop_back();
+ while (!entries.empty()) {
+ delete entries.back();
+ entries.pop_back();
+ }
}
const char *
void Adaptation::DetachServices()
{
- while (!AllServices().empty())
- AllServices().pop_back()->detach();
+ while (!AllServices().empty()) {
+ AllServices().back()->detach();
+ AllServices().pop_back();
+ }
}
Pointer us = NULL;
while (!theClients.empty()) {
- Client i = theClients.pop_back();
+ Client i = theClients.back();
+ theClients.pop_back();
ScheduleCallHere(i.callback);
i.callback = 0;
}
const E &front() const;
E &front();
E &back();
- E pop_back();
+ void pop_back();
E shift(); // aka pop_front
void prune(E);
void preAppend(int app_count);
- bool empty() const;
- size_t size() const;
+ inline bool empty() const;
+ inline size_t size() const;
iterator begin();
const_iterator begin () const;
iterator end();
const_iterator end () const;
E& at(unsigned i);
const E& at(unsigned i) const;
- E& operator [] (unsigned i);
- const E& operator [] (unsigned i) const;
+ inline E& operator [] (unsigned i);
+ inline const E& operator [] (unsigned i) const;
E* data() const { return items; }
protected:
}
template<class E>
-E
+void
Vector<E>::pop_back()
{
assert (size());
value_type result = items[--count];
items[count] = value_type();
- return result;
}
template<class E>
/* Wipe the Auth globals and Detach/Destruct component config + state. */
cfg->clear();
- /* remove our pointers to the probably-dead sub-configs */
- while (cfg->size()) {
- cfg->pop_back();
- }
-
/* on reconfigure initialize new auth schemes for the new config. */
if (reconfiguring) {
Auth::Init();
safe_free(error_text);
}
- while (ErrorDynamicPages.size())
- errorDynamicPageInfoDestroy(ErrorDynamicPages.pop_back());
+ while (ErrorDynamicPages.size()) {
+ errorDynamicPageInfoDestroy(ErrorDynamicPages.back());
+ ErrorDynamicPages.pop_back();
+ }
error_page_count = 0;
{
freeResources();
- while (variablesForCleanup.size())
- delete variablesForCleanup.pop_back();
+ while (variablesForCleanup.size()) {
+ delete variablesForCleanup.back();
+ variablesForCleanup.pop_back();
+ }
delete defaultVariable;
}
IO->io = anIO;
/* Change the IO Options */
- if (currentIOOptions && currentIOOptions->options.size() > 2)
- delete currentIOOptions->options.pop_back();
+ if (currentIOOptions && currentIOOptions->options.size() > 2) {
+ delete currentIOOptions->options.back();
+ currentIOOptions->options.pop_back();
+ }
/* TODO: factor out these 4 lines */
ConfigOption *ioOptions = IO->io->getOptionTree();