зеркало из https://github.com/mozilla/gecko-dev.git
Fix warnings
This commit is contained in:
Родитель
48dc2bd8cf
Коммит
882d316742
|
@ -42,7 +42,7 @@
|
|||
NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
||||
contentIds = [pboard propertyListForType:@"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
for (int i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
BookmarksService::DeleteBookmark(bookmarkElt);
|
||||
|
|
|
@ -156,9 +156,8 @@
|
|||
// check for recognized drag types
|
||||
contentIds = [[sender draggingPasteboard] propertyListForType: @"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
int i = 0;
|
||||
// drag type is chimera bookmarks
|
||||
for (i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
||||
contentIds = [pboard propertyListForType:@"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
for (int i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
BookmarksService::DeleteBookmark(bookmarkElt);
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
||||
contentIds = [pboard propertyListForType:@"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
for (int i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
BookmarksService::DeleteBookmark(bookmarkElt);
|
||||
|
|
|
@ -156,9 +156,8 @@
|
|||
// check for recognized drag types
|
||||
contentIds = [[sender draggingPasteboard] propertyListForType: @"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
int i = 0;
|
||||
// drag type is chimera bookmarks
|
||||
for (i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
NSPasteboard* pboard = [NSPasteboard pasteboardWithName:NSDragPboard];
|
||||
contentIds = [pboard propertyListForType:@"MozBookmarkType"];
|
||||
if (contentIds) {
|
||||
for (int i = 0; i < [contentIds count]; ++i) {
|
||||
for (unsigned int i = 0; i < [contentIds count]; ++i) {
|
||||
BookmarkItem* item = [BookmarksService::gDictionary objectForKey: [contentIds objectAtIndex:i]];
|
||||
nsCOMPtr<nsIDOMElement> bookmarkElt = do_QueryInterface([item contentNode]);
|
||||
BookmarksService::DeleteBookmark(bookmarkElt);
|
||||
|
|
Загрузка…
Ссылка в новой задаче