Bug 52352 - Fix uses of 'new/static nsAutoString/nsCAutoString'

(Cv1) <nsDOMOfflineResourceList.*>
r+sr=jst
This commit is contained in:
Serge Gautherie 2008-08-20 01:18:34 -05:00
Родитель c303931386
Коммит 0f05d29c88
2 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -73,7 +73,7 @@ static const char kMaxEntriesPref[] = "offline.max_site_resources";
#define DEFAULT_MAX_ENTRIES 100
#define MAX_URI_LENGTH 2048
static nsCAutoString gCachedAsciiHost;
static nsCString gCachedAsciiHost;
static char **gCachedKeys = nsnull;
static PRUint32 gCachedKeysCount = 0;
@ -190,7 +190,7 @@ nsDOMOfflineResourceList::Init()
rv = mManifestURI->GetAsciiSpec(mDynamicOwnerSpec);
NS_ENSURE_SUCCESS(rv, rv);
mDynamicOwnerSpec.Append("#dynamic");
mDynamicOwnerSpec.AppendLiteral("#dynamic");
nsCOMPtr<nsIURI> innerURI = NS_GetInnermostURI(mDocumentURI);
if (!innerURI)
@ -1007,8 +1007,5 @@ nsDOMOfflineResourceList::ClearCachedKeys()
gCachedKeysCount = 0;
}
gCachedAsciiHost = "";
gCachedAsciiHost = EmptyCString();
}

Просмотреть файл

@ -110,8 +110,8 @@ private:
nsCOMPtr<nsIWeakReference> mWindow;
nsCOMPtr<nsIOfflineCacheSession> mCacheSession;
nsCOMPtr<nsIOfflineCacheUpdate> mCacheUpdate;
nsCAutoString mAsciiHost;
nsCAutoString mDynamicOwnerSpec;
nsCString mAsciiHost;
nsCString mDynamicOwnerSpec;
nsCOMArray<nsIDOMEventListener> mCheckingListeners;
nsCOMArray<nsIDOMEventListener> mErrorListeners;