Ticket #40852: patch-src_3rdparty_webkit_Source_WebKit_qt_WebCoreSupport_NotificationPresenterClientQt.cpp.diff
File patch-src_3rdparty_webkit_Source_WebKit_qt_WebCoreSupport_NotificationPresenterClientQt.cpp.diff, 2.7 KB (added by BSeppke (Benjamin Seppke), 10 years ago) |
---|
-
src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
old new 54 54 55 55 bool NotificationPresenterClientQt::dumpNotification = false; 56 56 57 NotificationPresenterClientQt* s_notificationPresenter = 0;57 NotificationPresenterClientQt* s_notificationPresenter = nullptr; 58 58 59 59 NotificationPresenterClientQt* NotificationPresenterClientQt::notificationPresenter() 60 60 { … … 73 73 #if ENABLE(NOTIFICATIONS) 74 74 75 75 #ifndef QT_NO_SYSTEMTRAYICON 76 m_notificationIcon = 0;76 m_notificationIcon = nullptr; 77 77 #endif 78 m_presenter = 0;78 m_presenter = nullptr; 79 79 #endif 80 80 } 81 81 … … 164 164 { 165 165 m_clientCount--; 166 166 if (!m_clientCount) { 167 s_notificationPresenter = 0;167 s_notificationPresenter = nullptr; 168 168 delete this; 169 169 } 170 170 } … … 276 276 return; 277 277 NotificationsQueue::ConstIterator end = m_notifications.end(); 278 278 NotificationsQueue::ConstIterator iter = m_notifications.begin(); 279 Notification* notification = 0;279 Notification* notification = nullptr; 280 280 while (iter != end) { 281 281 notification = iter.key(); 282 282 QString notificationTitle; … … 300 300 iter++; 301 301 if (iter != end) 302 302 return iter.key(); 303 return 0;303 return nullptr; 304 304 } 305 305 306 306 void NotificationPresenterClientQt::notificationObjectDestroyed(Notification* notification) … … 388 388 389 389 void NotificationPresenterClientQt::removeReplacedNotificationFromQueue(Notification* notification) 390 390 { 391 Notification* oldNotification = 0;391 Notification* oldNotification = nullptr; 392 392 NotificationsQueue::Iterator end = m_notifications.end(); 393 393 NotificationsQueue::Iterator iter = m_notifications.begin(); 394 394 … … 437 437 QWebPage* NotificationPresenterClientQt::toPage(ScriptExecutionContext* context) 438 438 { 439 439 if (!context || context->isWorkerContext()) 440 return 0;440 return nullptr; 441 441 442 442 Document* document = static_cast<Document*>(context); 443 443 444 444 Page* page = document->page(); 445 445 if (!page || !page->mainFrame()) 446 return 0;446 return nullptr; 447 447 448 448 return QWebFramePrivate::kit(page->mainFrame())->page(); 449 449 } … … 451 451 QWebFrame* NotificationPresenterClientQt::toFrame(ScriptExecutionContext* context) 452 452 { 453 453 if (!context || context->isWorkerContext()) 454 return 0;454 return nullptr; 455 455 456 456 Document* document = static_cast<Document*>(context); 457 457 if (!document || !document->frame()) 458 return 0;458 return nullptr; 459 459 460 460 return QWebFramePrivate::kit(document->frame()); 461 461 }