summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/test/pdfunzip.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/test/pdfunzip.cxx')
-rw-r--r--sdext/source/pdfimport/test/pdfunzip.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdext/source/pdfimport/test/pdfunzip.cxx b/sdext/source/pdfimport/test/pdfunzip.cxx
index c4d5b6bc0b71..b9bf3a62f14f 100644
--- a/sdext/source/pdfimport/test/pdfunzip.cxx
+++ b/sdext/source/pdfimport/test/pdfunzip.cxx
@@ -302,7 +302,7 @@ static int write_addStreams( const char* pInFile, const char* pOutFile, PDFFile*
if( pTrailer && pTrailer->m_pDict )
{
// search for AdditionalStreams entry
- auto add_stream = pTrailer->m_pDict->m_aMap.find( "AdditionalStreams" );
+ auto add_stream = pTrailer->m_pDict->m_aMap.find( "AdditionalStreams"_ostr );
if( add_stream != pTrailer->m_pDict->m_aMap.end() )
{
PDFArray* pStreams = dynamic_cast<PDFArray*>(add_stream->second);
@@ -328,7 +328,7 @@ static int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile*
continue;
std::unordered_map<OString,PDFEntry*>::iterator map_it =
- pDict->m_aMap.find( "Type" );
+ pDict->m_aMap.find( "Type"_ostr );
if( map_it == pDict->m_aMap.end() )
continue;
@@ -340,7 +340,7 @@ static int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile*
// the font name will be helpful, also there must be one in
// a font descriptor
- map_it = pDict->m_aMap.find( "FontName" );
+ map_it = pDict->m_aMap.find( "FontName"_ostr );
if( map_it == pDict->m_aMap.end() )
continue;
pName = dynamic_cast<PDFName*>(map_it->second);
@@ -351,7 +351,7 @@ static int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile*
PDFObjectRef* pStreamRef = nullptr;
const char* pFileType = nullptr;
// we have a font descriptor, try for a type 1 font
- map_it = pDict->m_aMap.find( "FontFile" );
+ map_it = pDict->m_aMap.find( "FontFile"_ostr );
if( map_it != pDict->m_aMap.end() )
{
pStreamRef = dynamic_cast<PDFObjectRef*>(map_it->second);
@@ -362,7 +362,7 @@ static int write_fonts( const char* i_pInFile, const char* i_pOutFile, PDFFile*
// perhaps it's a truetype file ?
if( ! pStreamRef )
{
- map_it = pDict->m_aMap.find( "FontFile2" );
+ map_it = pDict->m_aMap.find( "FontFile2"_ostr );
if( map_it != pDict->m_aMap.end() )
{
pStreamRef = dynamic_cast<PDFObjectRef*>(map_it->second);