summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_streamcontentparser.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-29 18:28:58 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-30 18:36:15 +0000
commitd24236a926deeb8b9589c330c27dbd300b7f8c9d (patch)
tree42c0258195c44d73699723abc433edefc6e62b8e /core/fpdfapi/page/cpdf_streamcontentparser.cpp
parentf552ccab1d3ca232f9d2b4770ec40726e5047093 (diff)
downloadpdfium-d24236a926deeb8b9589c330c27dbd300b7f8c9d.tar.xz
Remove pointless CFX_FloatRect construction.
Also just call CFX_FloatRect() instead of explicitly writing out all zeros. Change-Id: I7574e64791d0c9ba613b14d0a613737dfbf39b12 Reviewed-on: https://pdfium-review.googlesource.com/7172 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_streamcontentparser.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
index 151b0e644e..e00dbc54fd 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
@@ -75,11 +75,11 @@ CFX_FloatRect GetShadingBBox(CPDF_ShadingPattern* pShading,
CPDF_Stream* pStream = ToStream(pShading->GetShadingObject());
CPDF_ColorSpace* pCS = pShading->GetCS();
if (!pStream || !pCS)
- return CFX_FloatRect(0, 0, 0, 0);
+ return CFX_FloatRect();
CPDF_MeshStream stream(type, pShading->GetFuncs(), pStream, pCS);
if (!stream.Load())
- return CFX_FloatRect(0, 0, 0, 0);
+ return CFX_FloatRect();
CFX_FloatRect rect;
bool bStarted = false;