Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: xfa/src/fgas/src/font/fx_gefont.cpp

Issue 1751093002: Replace FX_LPCRECT typedef with underlying types (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Default args, override. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/src/fgas/src/font/fx_gefont.cpp
diff --git a/xfa/src/fgas/src/font/fx_gefont.cpp b/xfa/src/fgas/src/font/fx_gefont.cpp
index 37066a2a49cf9c5f589a01beb57e5da688ef6817..468e28ea96c5f369bc9672cdfb629f2104990087 100644
--- a/xfa/src/fgas/src/font/fx_gefont.cpp
+++ b/xfa/src/fgas/src/font/fx_gefont.cpp
@@ -447,10 +447,10 @@ FX_BOOL CFX_GEFont::GetCharBBox(FX_WCHAR wUnicode,
}
}
}
- if (pRect == NULL) {
+ if (!pRect)
return FALSE;
- }
- bbox = *(FX_LPCRECT)pRect;
+
+ bbox = *static_cast<const CFX_Rect*>(pRect);
return TRUE;
}
FX_BOOL CFX_GEFont::GetBBox(CFX_Rect& bbox) {

Powered by Google App Engine
This is Rietveld 408576698