summaryrefslogtreecommitdiff
path: root/core/include/fpdftext/fpdf_text.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2014-12-17 16:54:04 -0800
committerLei Zhang <thestig@google.com>2014-12-17 16:54:04 -0800
commit81d5179b9b14507b4b381b184d29741b6e11913f (patch)
tree6f526a9a86baeb626703350a1797bc20c66d1170 /core/include/fpdftext/fpdf_text.h
parentdba5bfd174589ad08c4231b039297b59fa2ccc3b (diff)
downloadpdfium-81d5179b9b14507b4b381b184d29741b6e11913f.tar.xz
Cleanup: Pass by const reference in fpdftext.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/790213005
Diffstat (limited to 'core/include/fpdftext/fpdf_text.h')
-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;