Chromium Code Reviews| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| index 9fa26d87ae767ebd6fa21aa9906ad1223c3d2a3b..4cf8fe4f0276637e6ffa11a3be2d15ed7ea2319a 100644 |
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp |
| @@ -2194,9 +2194,9 @@ CPDF_Object* CPDF_SyntaxParser::GetObject(CPDF_IndirectObjects* pObjList, FX_DWO |
| } |
| if (key.GetLength() >= 1) { |
| if (nKeys < 32) { |
| - pDict->SetAt(CFX_ByteStringC(((FX_LPCSTR)key) + 1, key.GetLength() - 1), pObj); |
| + pDict->SetAt(CFX_ByteStringC((key.c_str()) + 1, key.GetLength() - 1), pObj); |
|
Tom Sepez
2014/12/30 22:53:26
nit: extra parens?
|
| } else { |
| - pDict->AddValue(CFX_ByteStringC(((FX_LPCSTR)key) + 1, key.GetLength() - 1), pObj); |
| + pDict->AddValue(CFX_ByteStringC((key.c_str()) + 1, key.GetLength() - 1), pObj); |
|
Tom Sepez
2014/12/30 22:53:26
nit: ditto
|
| } |
| } |
| } |
| @@ -2380,9 +2380,9 @@ CPDF_Object* CPDF_SyntaxParser::GetObjectByStrict(CPDF_IndirectObjects* pObjList |
| return NULL; |
| } |
| if (key.GetLength() == 1) { |
| - pDict->SetAt(CFX_ByteStringC(((FX_LPCSTR)key) + 1, key.GetLength() - 1), pObj); |
| + pDict->SetAt(CFX_ByteStringC((key.c_str()) + 1, key.GetLength() - 1), pObj); |
|
Tom Sepez
2014/12/30 22:53:26
nit: ditt
|
| } else { |
| - pDict->AddValue(CFX_ByteStringC(((FX_LPCSTR)key) + 1, key.GetLength() - 1), pObj); |
| + pDict->AddValue(CFX_ByteStringC((key.c_str()) + 1, key.GetLength() - 1), pObj); |
|
Tom Sepez
2014/12/30 22:53:26
nit: ditto
|
| } |
| } |
| if (pContext) { |