summaryrefslogtreecommitdiff
path: root/core/include/fpdftext
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2014-12-17 16:54:04 -0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-12-19 14:45:11 -0800
commit786febb9c8e85b9215a6a5126c6386a9f4b4d280 (patch)
treee7b0d37b7f34d3fd552ce3a754c08107a4641d36 /core/include/fpdftext
parentc674af4698ab5fd1ce48b069bd72aa4c5fa10c6c (diff)
downloadpdfium-786febb9c8e85b9215a6a5126c6386a9f4b4d280.tar.xz
XFA: merge patch from CL 790213005
Cleanup: Pass by const reference in fpdftext. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/790213005
Diffstat (limited to 'core/include/fpdftext')
-rw-r--r--core/include/fpdftext/fpdf_text.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/include/fpdftext/fpdf_text.h b/core/include/fpdftext/fpdf_text.h
index 2a5e4ac4bd..39008063f3 100644
--- a/core/include/fpdftext/fpdf_text.h
+++ b/core/include/fpdftext/fpdf_text.h
@@ -105,9 +105,9 @@ public:
virtual int GetOrderByDirection(int index, int direction) const = 0;
- virtual CFX_WideString GetTextByRect(CFX_FloatRect rect) const = 0;
+ virtual CFX_WideString GetTextByRect(const CFX_FloatRect& rect) const = 0;
- virtual void GetRectsArrayByRect(CFX_FloatRect rect, CFX_RectArray& resRectArray) const = 0;
+ virtual void GetRectsArrayByRect(const CFX_FloatRect& rect, CFX_RectArray& resRectArray) const = 0;
virtual int CountRects(int start, int nCount) = 0;
@@ -116,7 +116,7 @@ public:
virtual FX_BOOL GetBaselineRotate(int rectIndex, int& Rotate) = 0;
- virtual FX_BOOL GetBaselineRotate(CFX_FloatRect rect, int& Rotate) = 0;
+ virtual FX_BOOL GetBaselineRotate(const CFX_FloatRect& rect, int& Rotate) = 0;
virtual int CountBoundedSegments(FX_FLOAT left, FX_FLOAT top, FX_FLOAT right, FX_FLOAT bottom, FX_BOOL bContains = FALSE) = 0;
@@ -139,7 +139,7 @@ public:
static IPDF_TextPageFind* CreatePageFind(const IPDF_TextPage* pTextPage);
public:
- virtual FX_BOOL FindFirst(CFX_WideString findwhat, int flags, int startPos = 0) = 0;
+ virtual FX_BOOL FindFirst(const CFX_WideString& findwhat, int flags, int startPos = 0) = 0;
virtual FX_BOOL FindNext() = 0;