From 5a35129bce7ca777e155e5498e8d4792fa6a4819 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Fri, 19 Dec 2014 02:27:25 -0800 Subject: Fix a few windows compile warnings R=tsepez@chromium.org Review URL: https://codereview.chromium.org/817753002 --- core/src/fpdftext/fpdf_text_int.cpp | 1 - samples/pdfium_test.cc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp index 7a8e02960e..958b213d3d 100644 --- a/core/src/fpdftext/fpdf_text_int.cpp +++ b/core/src/fpdftext/fpdf_text_int.cpp @@ -1887,7 +1887,6 @@ void CPDF_TextPage::ProcessTextObject(PDFTEXT_Obj Obj) FX_WCHAR * pTempBuffer = m_TempTextBuf.GetBuffer(); i = iBufStartAppend; j = m_TempTextBuf.GetLength() - 1; - FX_WCHAR wTemp; for (; i < j; i++, j--) { std::swap(pTempBuffer[i], pTempBuffer[j]); } diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 51199ea5a0..b217f89c70 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -268,7 +268,7 @@ bool ParseCommandLine(const std::vector& args, return false; } options->exe_path = args[0]; - int cur_idx = 1; + size_t cur_idx = 1; for (; cur_idx < args.size(); ++cur_idx) { const std::string& cur_arg = args[cur_idx]; if (cur_arg == "--ppm") { @@ -310,7 +310,7 @@ bool ParseCommandLine(const std::vector& args, fprintf(stderr, "No input files.\n"); return false; } - for (int i = cur_idx; i < args.size(); i++) { + for (size_t i = cur_idx; i < args.size(); i++) { files->push_back(args[i]); } return true; -- cgit v1.2.3