Bug 911428 - Fix -Wunused-variable warning in rdf/datasource/src/nsFileSystemDataSource.cpp. r=bsmedberg

This commit is contained in:
Chris Peterson 2013-08-12 23:35:07 -07:00
parent dad3672925
commit e7b3869729

View File

@ -843,7 +843,6 @@ FileSystemDataSource::EndUpdateBatch()
nsresult
FileSystemDataSource::GetVolumeList(nsISimpleEnumerator** aResult)
{
nsresult rv;
nsCOMArray<nsIRDFResource> volumes;
nsCOMPtr<nsIRDFResource> vol;
@ -862,11 +861,11 @@ FileSystemDataSource::GetVolumeList(nsISimpleEnumerator** aResult)
{
nsAutoCString url;
url.AppendPrintf("file:///%c|/", volNum + 'A');
rv = mRDFService->GetResource(url, getter_AddRefs(vol));
nsresult rv = mRDFService->GetResource(url, getter_AddRefs(vol));
if (NS_FAILED(rv))
return rv;
volumes.AppendObject(vol);
volumes.AppendObject(vol);
}
}
#endif
@ -880,7 +879,7 @@ FileSystemDataSource::GetVolumeList(nsISimpleEnumerator** aResult)
ULONG ulDriveNo = 0;
ULONG ulDriveMap = 0;
rv = DosQueryCurrentDisk(&ulDriveNo, &ulDriveMap);
nsresult rv = DosQueryCurrentDisk(&ulDriveNo, &ulDriveMap);
if (NS_FAILED(rv))
return rv;