@@ -220,7 +220,7 @@ namespace Exiv2
220
220
hdrsize += 8 ;
221
221
enforce (hdrsize <= static_cast <size_t >(pbox_end - address), Exiv2::kerCorruptedMetadata);
222
222
DataBuf data (8 );
223
- io_->read (data.data (0 ), data.size ());
223
+ io_->read (data.data (), data.size ());
224
224
box_length = data.read_uint64 (0 , endian_);
225
225
}
226
226
@@ -230,7 +230,7 @@ namespace Exiv2
230
230
enforce (box_length - hdrsize <= static_cast <size_t >(pbox_end - restore), Exiv2::kerCorruptedMetadata);
231
231
DataBuf data (static_cast <long >(box_length - hdrsize));
232
232
const long box_end = restore + data.size ();
233
- io_->read (data.data (0 ), data.size ());
233
+ io_->read (data.data (), data.size ());
234
234
io_->seek (restore, BasicIo::beg);
235
235
236
236
long skip = 0 ; // read position in data.pData_
@@ -407,7 +407,7 @@ namespace Exiv2
407
407
uint8_t meth = data.read_uint8 (skip+0 );
408
408
uint8_t prec = data.read_uint8 (skip+1 );
409
409
uint8_t approx = data.read_uint8 (skip+2 );
410
- std::string colour_type = std::string (data.c_str (0 ), 4 );
410
+ std::string colour_type = std::string (data.c_str (), 4 );
411
411
skip+=4 ;
412
412
if ( colour_type == " rICC" || colour_type == " prof" ) {
413
413
DataBuf profile (data.c_data (skip),data.size ()-skip);
@@ -423,7 +423,7 @@ namespace Exiv2
423
423
424
424
case TAG_uuid: {
425
425
DataBuf uuid (16 );
426
- io_->read (uuid.data (0 ), uuid.size ());
426
+ io_->read (uuid.data (), uuid.size ());
427
427
std::string name = uuidName (uuid);
428
428
if ( bTrace ) {
429
429
out << " uuidName " << name << std::endl;
@@ -476,7 +476,7 @@ namespace Exiv2
476
476
long restore = io_->tell ();
477
477
DataBuf exif (static_cast <long >(length));
478
478
io_->seek (static_cast <long >(start),BasicIo::beg);
479
- if ( exif.size () > 8 && io_->read (exif.data (0 ),exif.size ()) == exif.size () ) {
479
+ if ( exif.size () > 8 && io_->read (exif.data (),exif.size ()) == exif.size () ) {
480
480
// hunt for "II" or "MM"
481
481
long eof = 0xffffffff ; // impossible value for punt
482
482
long punt = eof;
@@ -500,15 +500,15 @@ namespace Exiv2
500
500
enforce (length - 8 <= io_->size () - io_->tell (), kerCorruptedMetadata);
501
501
enforce (length - 8 <= static_cast <unsigned long >(std::numeric_limits<long >::max ()), kerCorruptedMetadata);
502
502
DataBuf data (static_cast <long >(length - 8 ));
503
- long bufRead = io_->read (data.data (0 ), data.size ());
503
+ long bufRead = io_->read (data.data (), data.size ());
504
504
505
505
if (io_->error ())
506
506
throw Error (kerFailedToReadImageData);
507
507
if (bufRead != data.size ())
508
508
throw Error (kerInputDataReadFailed);
509
509
510
510
Internal::TiffParserWorker::decode (exifData (), iptcData (), xmpData (),
511
- data.c_data (0 ), data.size (), root_tag,
511
+ data.c_data (), data.size (), root_tag,
512
512
Internal::TiffMapping::findDecoder);
513
513
}
514
514
}
@@ -526,12 +526,12 @@ namespace Exiv2
526
526
enforce (length < static_cast <unsigned long >(std::numeric_limits<long >::max ()), kerCorruptedMetadata);
527
527
DataBuf xmp (static_cast <long >(length+1 ));
528
528
xmp.write_uint8 (static_cast <size_t >(length), 0 ); // ensure xmp is null terminated!
529
- if ( io_->read (xmp.data (0 ), static_cast <long >(length)) != static_cast <long >(length) )
529
+ if ( io_->read (xmp.data (), static_cast <long >(length)) != static_cast <long >(length) )
530
530
throw Error (kerInputDataReadFailed);
531
531
if ( io_->error () )
532
532
throw Error (kerFailedToReadImageData);
533
533
try {
534
- Exiv2::XmpParser::decode (xmpData (), std::string (xmp.c_str (0 )));
534
+ Exiv2::XmpParser::decode (xmpData (), std::string (xmp.c_str ()));
535
535
} catch (...) {
536
536
throw Error (kerFailedToReadImageData);
537
537
}
@@ -588,7 +588,7 @@ namespace Exiv2
588
588
default : break ; // do nothing
589
589
590
590
case kpsIccProfile : {
591
- out.write (iccProfile_.c_str (0 ), iccProfile_.size ());
591
+ out.write (iccProfile_.c_str (), iccProfile_.size ());
592
592
} break ;
593
593
594
594
#ifdef EXV_HAVE_XMP_TOOLKIT
0 commit comments