Bug 844905 - Change MediaResource::GetContentType return type to nsCString. r=cpearce

This commit is contained in:
Jacek Caban 2013-02-26 12:02:20 +01:00
parent d86c245b78
commit b59eb40039
3 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ public:
bool IsTransportSeekable() MOZ_OVERRIDE { return true; }
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
{
return mContentType;
}

View File

@ -371,7 +371,7 @@ public:
// Returns the content type of the resource. This is copied from the
// nsIChannel when the MediaResource is created. Safe to call from
// any thread.
virtual const nsACString& GetContentType() const = 0;
virtual const nsCString& GetContentType() const = 0;
};
class BaseMediaResource : public MediaResource {
@ -398,7 +398,7 @@ protected:
MOZ_COUNT_DTOR(BaseMediaResource);
}
virtual const nsACString& GetContentType() const MOZ_OVERRIDE
virtual const nsCString& GetContentType() const MOZ_OVERRIDE
{
return mContentType;
}

View File

@ -162,7 +162,7 @@ WMFByteStream::Init()
contentTypeUTF16.get());
NS_ENSURE_TRUE(SUCCEEDED(hr), NS_ERROR_FAILURE);
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType());
LOG("WMFByteStream has Content-Type=%s", mResource->GetContentType().get());
}
return NS_OK;
}