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:
Nicholas Nethercote
2017-06-20 19:19:52 +10:00
parent 4cbdad69e6
commit 4ce1e9c11f
119 changed files with 363 additions and 379 deletions

View File

@@ -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);