use modern construct 'nullptr' instead of 'NULL' or '0'
[platform/core/uifw/dali-core.git] / dali / integration-api / bitmap.cpp
index 3f50e12..794be95 100644 (file)
@@ -476,7 +476,7 @@ Bitmap* Bitmap::New( const Profile profile = BITMAP_2D_PACKED_PIXELS,
       return new Dali::Internal::BitmapCompressed( discardable );
     }
   }
-  return 0;
+  return nullptr;
 }
 
 
@@ -494,7 +494,7 @@ Bitmap::Bitmap( ResourcePolicy::Discardable discardable, Dali::Integration::Pixe
 PixelBuffer* Bitmap::GetBufferOwnership()
 {
   PixelBuffer* buffer = mData;
-  mData = NULL;
+  mData = nullptr;
   return buffer;
 }
 
@@ -521,7 +521,7 @@ void Bitmap::DeletePixelBuffer()
     return;
   }
   free ( mData );
-  mData = NULL;
+  mData = nullptr;
 }