summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpvt_generateap.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-12 21:56:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-12 21:56:43 -0700
commit594b20b485046c954b68734e63e8d2c93fbe4ef5 (patch)
treec20f6447c239d49848fea421fd497f23e41edbe3 /core/fpdfdoc/cpvt_generateap.cpp
parentf6d9a61af218b7acc1161ae231b16765ca10b526 (diff)
downloadpdfium-594b20b485046c954b68734e63e8d2c93fbe4ef5.tar.xz
Fix some misc nits.
These were left over from after I broke a big "things that never return NULL" CL up into smaller ones. Review-Url: https://codereview.chromium.org/1960043003
Diffstat (limited to 'core/fpdfdoc/cpvt_generateap.cpp')
-rw-r--r--core/fpdfdoc/cpvt_generateap.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp
index 7fcd90969e..2fc0644bcc 100644
--- a/core/fpdfdoc/cpvt_generateap.cpp
+++ b/core/fpdfdoc/cpvt_generateap.cpp
@@ -504,9 +504,13 @@ CFX_ByteString CPVT_GenerateAP::GenerateEditAP(
const CFX_FloatPoint& ptOffset,
FX_BOOL bContinuous,
uint16_t SubWord) {
- CFX_ByteTextBuf sEditStream, sLineStream, sWords;
- CFX_FloatPoint ptOld(0.0f, 0.0f), ptNew(0.0f, 0.0f);
+ CFX_ByteTextBuf sEditStream;
+ CFX_ByteTextBuf sLineStream;
+ CFX_ByteTextBuf sWords;
+ CFX_FloatPoint ptOld(0.0f, 0.0f);
+ CFX_FloatPoint ptNew(0.0f, 0.0f);
int32_t nCurFontIndex = -1;
+
pIterator->SetAt(0);
CPVT_WordPlace oldplace;