Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 661876: Bustage fix. a=red
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Jul 5, 2011
1 parent bd12979 commit 987eec8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/base/public/nsDOMFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class nsDOMFile : public nsIDOMFile,
NewFile(nsISupports* *aNewObject);

static void
WarnDeprecated(const nsCString& aAPI);
WarnDeprecated(const char* aAPI);
protected:
nsCOMPtr<nsIFile> mFile;
nsCOMPtr<nsISupports> mCacheToken;
Expand Down
12 changes: 6 additions & 6 deletions content/base/src/nsDOMFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ nsDOMFile::NewFile(nsISupports* *aNewObject)
NS_IMETHODIMP
nsDOMFile::GetFileName(nsAString &aFileName)
{
WarnDeprecated(NS_LITERAL_CSTRING("fileName"));
WarnDeprecated(NS_LITERAL_CSTRING("fileName").get());
return GetName(aFileName);
}

NS_IMETHODIMP
nsDOMFile::GetFileSize(PRUint64 *aFileSize)
{
WarnDeprecated(NS_LITERAL_CSTRING("fileSize"));
WarnDeprecated(NS_LITERAL_CSTRING("fileSize").get());
return GetSize(aFileSize);
}

Expand Down Expand Up @@ -365,7 +365,7 @@ nsDOMFile::GetInternalUrl(nsIPrincipal* aPrincipal, nsAString& aURL)
NS_IMETHODIMP
nsDOMFile::GetAsText(const nsAString &aCharset, nsAString &aResult)
{
WarnDeprecated(NS_LITERAL_CSTRING("getAsText"));
WarnDeprecated(NS_LITERAL_CSTRING("getAsText").get());

aResult.Truncate();

Expand Down Expand Up @@ -400,7 +400,7 @@ nsDOMFile::GetAsText(const nsAString &aCharset, nsAString &aResult)
NS_IMETHODIMP
nsDOMFile::GetAsDataURL(nsAString &aResult)
{
WarnDeprecated(NS_LITERAL_CSTRING("getAsDataURL"));
WarnDeprecated(NS_LITERAL_CSTRING("getAsDataURL").get());

aResult.AssignLiteral("data:");

Expand Down Expand Up @@ -471,7 +471,7 @@ nsDOMFile::GetAsDataURL(nsAString &aResult)
NS_IMETHODIMP
nsDOMFile::GetAsBinary(nsAString &aResult)
{
WarnDeprecated(NS_LITERAL_CSTRING("getAsBinary"));
WarnDeprecated(NS_LITERAL_CSTRING("getAsBinary").get());

aResult.Truncate();

Expand Down Expand Up @@ -685,7 +685,7 @@ nsDOMFile::Initialize(nsISupports* aOwner,
}

/* static */ void
nsDOMFile::WarnDeprecated(const nsCString& aAPI)
nsDOMFile::WarnDeprecated(const char* aAPI)
{
nsPIDOMWindow* piWindow = nsContentUtils::GetWindowFromCaller();

Expand Down

0 comments on commit 987eec8

Please sign in to comment.