Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: fpdfsdk/src/fsdk_baseform.cpp

Issue 809993004: Get rid of FX_LPCSTR cast. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Indent Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fsdk_baseannot.cpp ('k') | fpdfsdk/src/javascript/JS_Value.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../include/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fsdk_mgr.h" 8 #include "../include/fsdk_mgr.h"
9 #include "../include/fsdk_baseannot.h" 9 #include "../include/fsdk_baseannot.h"
10 #include "../include/fsdk_baseform.h" 10 #include "../include/fsdk_baseform.h"
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1909 pStreamDict->SetAt("BBox", pBBox); 1909 pStreamDict->SetAt("BBox", pBBox);
1910 pBBox->AddInteger(0); 1910 pBBox->AddInteger(0);
1911 pBBox->AddInteger(0); 1911 pBBox->AddInteger(0);
1912 pBBox->AddInteger(nWidth); 1912 pBBox->AddInteger(nWidth);
1913 pBBox->AddInteger(nHeight); 1913 pBBox->AddInteger(nHeight);
1914 pStreamDict->SetAtInteger("FormType", 1); 1914 pStreamDict->SetAtInteger("FormType", 1);
1915 1915
1916 pRetStream = new CPDF_Stream(NULL, 0, NULL); 1916 pRetStream = new CPDF_Stream(NULL, 0, NULL);
1917 CFX_ByteString csStream; 1917 CFX_ByteString csStream;
1918 csStream.Format("q\n%d 0 0 %d 0 0 cm\n/Img Do\nQ", nWidt h, nHeight); 1918 csStream.Format("q\n%d 0 0 %d 0 0 cm\n/Img Do\nQ", nWidt h, nHeight);
1919 » » » pRetStream->InitStream((FX_BYTE*)(FX_LPCSTR)csStream, cs Stream.GetLength(), pStreamDict); 1919 » » » pRetStream->InitStream((FX_BYTE*)csStream.c_str(), csStr eam.GetLength(), pStreamDict);
1920 pDocument->AddIndirectObject(pRetStream); 1920 pDocument->AddIndirectObject(pRetStream);
1921 } 1921 }
1922 1922
1923 delete pBmp; 1923 delete pBmp;
1924 } 1924 }
1925 1925
1926 return pRetStream; 1926 return pRetStream;
1927 } 1927 }
1928 #endif 1928 #endif
1929 1929
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 3096
3097 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); 3097 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();
3098 ASSERT(pPDFAnnot != NULL); 3098 ASSERT(pPDFAnnot != NULL);
3099 3099
3100 CPDF_Rect rcAnnot; 3100 CPDF_Rect rcAnnot;
3101 pPDFAnnot->GetRect(rcAnnot); 3101 pPDFAnnot->GetRect(rcAnnot);
3102 3102
3103 return rcAnnot; 3103 return rcAnnot;
3104 } 3104 }
3105 3105
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_baseannot.cpp ('k') | fpdfsdk/src/javascript/JS_Value.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698