@@ -290,9 +290,9 @@ JpgOutput::open(const std::string& name, const ImageSpec& newspec,
290290 std::vector<char > iptc;
291291 if (m_spec.get_int_attribute (" jpeg:iptc" , 1 )
292292 && encode_iptc_iim (m_spec, iptc)) {
293- static char photoshop[] = " Photoshop 3.0" ;
293+ static const char * photoshop = " Photoshop 3.0" ;
294294 std::vector<char > head (photoshop, photoshop + strlen (photoshop) + 1 );
295- static char _8BIM[] = " 8BIM" ;
295+ static const char * _8BIM = " 8BIM" ;
296296 head.insert (head.end (), _8BIM, _8BIM + 4 );
297297 head.push_back (4 ); // 0x0404
298298 head.push_back (4 );
@@ -310,7 +310,7 @@ JpgOutput::open(const std::string& name, const ImageSpec& newspec,
310310 // Write XMP packet, if we have anything
311311 std::string xmp = encode_xmp (m_spec, true );
312312 if (!xmp.empty ()) {
313- static char prefix[] = " http://ns.adobe.com/xap/1.0/" ; // NOSONAR
313+ static const char * prefix = " http://ns.adobe.com/xap/1.0/" ;
314314 std::vector<char > block (prefix, prefix + strlen (prefix) + 1 );
315315 block.insert (block.end (), xmp.c_str (), xmp.c_str () + xmp.length ());
316316 jpeg_write_marker (&m_cinfo, JPEG_APP0 + 1 , (JOCTET*)&block[0 ],
0 commit comments