summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc/doc_basic.cpp
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-11-14 17:03:50 -0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-14 17:28:31 -0800
commitf13c1f3d21b1fad7a3ac70c14387379f6e146a1a (patch)
tree9a3faa4513f451b24a6dd9999ea0f1ecca92a800 /core/src/fpdfdoc/doc_basic.cpp
parent0c32f02cf5dabd80c03f3af34874b5f84535b1ef (diff)
downloadpdfium-f13c1f3d21b1fad7a3ac70c14387379f6e146a1a.tar.xz
Merge to XFA: Patch from CL 726143002
BUG=https://code.google.com/p/pdfium/issues/detail?id=78 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/726143002
Diffstat (limited to 'core/src/fpdfdoc/doc_basic.cpp')
-rw-r--r--core/src/fpdfdoc/doc_basic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fpdfdoc/doc_basic.cpp b/core/src/fpdfdoc/doc_basic.cpp
index 5ccf4ceee9..459ae87a0a 100644
--- a/core/src/fpdfdoc/doc_basic.cpp
+++ b/core/src/fpdfdoc/doc_basic.cpp
@@ -488,7 +488,7 @@ static CFX_WideString _GetLabelNumPortion(int num, const CFX_ByteString& bsStyle
return wsNumPortion;
}
if (bsStyle == "D") {
- wsNumPortion.Format((FX_LPCWSTR)L"%d", num);
+ wsNumPortion.Format(L"%d", num);
} else if (bsStyle == "R") {
wsNumPortion = _MakeRoman(num);
wsNumPortion.MakeUpper();
@@ -537,7 +537,7 @@ CFX_WideString CPDF_PageLabel::GetLabel(int nPage) const
return wsLabel;
}
}
- wsLabel.Format((FX_LPCWSTR)L"%d", nPage + 1);
+ wsLabel.Format(L"%d", nPage + 1);
return wsLabel;
}
FX_INT32 CPDF_PageLabel::GetPageByLabel(FX_BSTR bsLabel) const