зеркало из https://github.com/mozilla/gecko-dev.git
RDF interface changes.
This commit is contained in:
Родитель
6eb0bfba42
Коммит
203f96e9a9
|
@ -812,7 +812,7 @@ static NS_DEFINE_IID(kIRDFResourceManagerIID, NS_IRDFRESOURCEMANAGER_IID);
|
||||||
nsIRDFDataBase* db = nsnull;
|
nsIRDFDataBase* db = nsnull;
|
||||||
nsIRDFDocument* doc = nsnull;
|
nsIRDFDocument* doc = nsnull;
|
||||||
nsIRDFResourceManager* mgr = nsnull;
|
nsIRDFResourceManager* mgr = nsnull;
|
||||||
nsIRDFNode* root = nsnull;
|
nsIRDFResource* root = nsnull;
|
||||||
|
|
||||||
result = nsnull; // reasonable default
|
result = nsnull; // reasonable default
|
||||||
|
|
||||||
|
@ -842,7 +842,7 @@ static NS_DEFINE_IID(kIRDFResourceManagerIID, NS_IRDFRESOURCEMANAGER_IID);
|
||||||
(nsISupports**) &mgr)))
|
(nsISupports**) &mgr)))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
if (NS_FAILED(rv = mgr->GetNode("rdf:bookmarks", root)))
|
if (NS_FAILED(rv = mgr->GetResource("rdf:bookmarks", &root)))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
if (NS_FAILED(rv = doc->SetRootResource(root)))
|
if (NS_FAILED(rv = doc->SetRootResource(root)))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче