diff options
author | arthurhsu <arthurhsu@google.com> | 2011-10-11 01:01:16 +0000 |
---|---|---|
committer | arthurhsu <arthurhsu@google.com> | 2011-10-11 01:01:16 +0000 |
commit | 158cdcb9cf09418ba8b49f4be7be69e37aa8e9fa (patch) | |
tree | d45ec0d71e59ea8df58331b5005d6e920daedf3e /cpp/src/sfntly/data/byte_array.cc | |
parent | b4e699e152543000a5825791e1c26826924a256f (diff) | |
download | sfntly-158cdcb9cf09418ba8b49f4be7be69e37aa8e9fa.tar.gz |
Update to Sep 30 snapshot, include all current EBXX support.
Refine Iterator ports: all java-style Iterator objects are ref-counted and have automatic memory management now.
Diffstat (limited to 'cpp/src/sfntly/data/byte_array.cc')
-rw-r--r-- | cpp/src/sfntly/data/byte_array.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpp/src/sfntly/data/byte_array.cc b/cpp/src/sfntly/data/byte_array.cc index c820adc..915a40c 100644 --- a/cpp/src/sfntly/data/byte_array.cc +++ b/cpp/src/sfntly/data/byte_array.cc @@ -115,13 +115,7 @@ int32_t ByteArray::CopyTo(int32_t dst_offset, ByteArray* array, while ((bytes_read = Get(index + src_offset, &(b[0]), 0, buffer_length)) > 0) { int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); - if (bytes_written != bytes_read) { -#if defined (SFNTLY_NO_EXCEPTION) - return 0; -#else - throw IOException("Error writing bytes."); -#endif - } + UNREFERENCED_PARAMETER(bytes_written); index += bytes_read; remaining_length -= bytes_read; buffer_length = std::min<int32_t>(b.size(), remaining_length); |