Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows. - nsSubstring --> nsAString - nsCSubstring --> nsACString
This commit is contained in:
10
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
10
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
@@ -1358,7 +1358,7 @@ nsOfflineCacheDevice::InitWithSqlite(mozIStorageService * ss)
|
||||
namespace {
|
||||
|
||||
nsresult
|
||||
GetGroupForCache(const nsCSubstring &clientID, nsCString &group)
|
||||
GetGroupForCache(const nsACString& clientID, nsCString& group)
|
||||
{
|
||||
group.Assign(clientID);
|
||||
group.Truncate(group.FindChar('|'));
|
||||
@@ -2791,8 +2791,8 @@ nsOfflineCacheDevice::CacheOpportunistically(nsIApplicationCache* cache,
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsOfflineCacheDevice::ActivateCache(const nsCSubstring &group,
|
||||
const nsCSubstring &clientID)
|
||||
nsOfflineCacheDevice::ActivateCache(const nsACString& group,
|
||||
const nsACString& clientID)
|
||||
{
|
||||
NS_ENSURE_TRUE(Initialized(), NS_ERROR_NOT_INITIALIZED);
|
||||
|
||||
@@ -2827,8 +2827,8 @@ nsOfflineCacheDevice::ActivateCache(const nsCSubstring &group,
|
||||
}
|
||||
|
||||
bool
|
||||
nsOfflineCacheDevice::IsActiveCache(const nsCSubstring &group,
|
||||
const nsCSubstring &clientID)
|
||||
nsOfflineCacheDevice::IsActiveCache(const nsACString& group,
|
||||
const nsACString& clientID)
|
||||
{
|
||||
nsCString *active = nullptr;
|
||||
MutexAutoLock lock(mLock);
|
||||
|
||||
Reference in New Issue
Block a user