/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "squid.h"
#include "base/TextException.h"
-#include "Mem.h"
#include "mgr/Registration.h"
#include "profiler/Profiler.h"
#include "Store.h"
String::allocAndFill(const char *str, int len)
{
PROF_start(StringAllocAndFill);
- assert(this && str);
+ assert(str);
allocBuffer(len + 1);
len_ = len;
memcpy(buf_, str, len);
String::clean()
{
PROF_start(StringClean);
- assert(this);
/* TODO if mempools has already closed this will FAIL!! */
if (defined())
void
String::append( char const *str, int len)
{
- assert(this);
assert(str && len >= 0);
PROF_start(StringAppend);
#if !_USE_INLINE_
#include "String.cci"
#endif
+