const char *
MemObject::storeId() const
{
- if (!storeId_.size()) {
+ if (storeId_.isEmpty()) {
debugs(20, DBG_IMPORTANT, "ERROR: Squid BUG: Missing MemObject::storeId value");
dump();
storeId_ = "[unknown_URI]";
}
- return storeId_.termedBuf();
+ return storeId_.c_str();
}
const char *
MemObject::logUri() const
{
- return logUri_.size() ? logUri_.termedBuf() : storeId();
+ return logUri_.isEmpty() ? storeId() : logUri_.c_str();
}
bool
MemObject::hasUris() const
{
- return storeId_.size();
+ return !storeId_.isEmpty();
}
void
// fast pointer comparison for a common storeCreateEntry(url,url,...) case
if (!aLogUri || aLogUri == aStoreId)
- logUri_.clean(); // use storeId_ by default to minimize copying
+ logUri_.clear(); // use storeId_ by default to minimize copying
else
logUri_ = aLogUri;
#include "http/RequestMethod.h"
#include "HttpReply.h"
#include "RemovalPolicy.h"
-#include "SquidString.h"
+#include "sbuf/SBuf.h"
#include "stmem.h"
#include "store/forward.h"
#include "StoreIOBuffer.h"
HttpReplyPointer reply_; ///< \see baseReply()
HttpReplyPointer updatedReply_; ///< \see updatedReply()
- mutable String storeId_; ///< StoreId for our entry (usually request URI)
- mutable String logUri_; ///< URI used for logging (usually request URI)
+ mutable SBuf storeId_; ///< StoreId for our entry (usually request URI)
+ mutable SBuf logUri_; ///< URI used for logging (usually request URI)
DelayedAsyncCalls deferredReads;
};