fix for bug # 43335. checking in patch on behalf of deo@logos-m.ru r=radha

This commit is contained in:
radha%netscape.com 2005-08-18 11:15:44 +00:00
Родитель 7aff359ee9
Коммит 5f5fc8b80b
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -248,28 +248,30 @@ nsSHistory::PrintHistory()
nsCOMPtr<nsILayoutHistoryState> layoutHistoryState;
nsCOMPtr<nsIURI> uri;
PRUnichar * title;
char * titleCStr=nsnull;
nsXPIDLCString url;
entry->GetLayoutHistoryState(getter_AddRefs(layoutHistoryState));
entry->GetURI(getter_AddRefs(uri));
entry->GetTitle(&title);
nsString titlestr(title);
titleCStr = titlestr.ToNewCString();
entry->GetTitle(&title);
if (uri)
uri->GetSpec(getter_Copies(url));
#if 0
char * titleCStr=nsnull;
nsString titlestr(title);
titleCStr = titlestr.ToNewCString();
printf("**** SH Transaction #%d, Entry = %x\n", index, entry.get());
printf("\t\t URL = %s\n", url);
printf("\t\t Title = %s\n", titleCStr);
printf("\t\t layout History Data = %x\n", layoutHistoryState);
Recycle(titleCStr);
#endif
Recycle(title);
Recycle(titleCStr);
nsCOMPtr<nsISHTransaction> next;
rv = txn->GetNext(getter_AddRefs(next));