Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / views / SkOSMenu.cpp
index 3de0a9e..ad0c73f 100644 (file)
@@ -32,7 +32,7 @@ const SkOSMenu::Item* SkOSMenu::getItemByID(int itemID) const {
 }
 
 void SkOSMenu::getItems(const SkOSMenu::Item* items[]) const {
-    if (NULL != items) {
+    if (items) {
         for (int i = 0; i < fItems.count(); ++i) {
             items[i] = fItems[i];
         }
@@ -204,7 +204,7 @@ bool SkOSMenu::FindListItemCount(const SkEvent& evt, int* count) {
 }
 
 bool SkOSMenu::FindListItems(const SkEvent& evt, SkString items[]) {
-    if (evt.isType(gMenuEventType) && NULL != items) {
+    if (evt.isType(gMenuEventType) && items) {
         const char* text = evt.findString(gList_Items_Str);
         if (text != NULL) {
             SkString temp(text);