Simplify part of CFX_DIBitmap::ConvertFormat()

Call SetUniformOpaqueAlpha() instead of reimplementing it.

Change-Id: If64b5c6fecade5cc9dbc55a26bfdb5c9db555f6f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/122613
Reviewed-by: Tom Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxge/dib/cfx_dibitmap.cpp b/core/fxge/dib/cfx_dibitmap.cpp
index 3eb6d8f..985747a 100644
--- a/core/fxge/dib/cfx_dibitmap.cpp
+++ b/core/fxge/dib/cfx_dibitmap.cpp
@@ -849,15 +849,7 @@
   if (dest_format == FXDIB_Format::kArgb &&
       GetFormat() == FXDIB_Format::kRgb32) {
     SetFormat(FXDIB_Format::kArgb);
-    UNSAFE_TODO({
-      for (int row = 0; row < GetHeight(); row++) {
-        uint8_t* scanline = m_pBuffer.Get() + row * GetPitch() + 3;
-        for (int col = 0; col < GetWidth(); col++) {
-          *scanline = 0xff;
-          scanline += 4;
-        }
-      }
-    });
+    SetUniformOpaqueAlpha();
     return true;
   }
   int dest_bpp = GetBppFromFormat(dest_format);