BIND 10 trac1568_new, updated. 3422adaa26b0e1c24d6e230694975a4986cb0965 [1568] Remove a throw

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Mar 12 20:43:11 UTC 2012


The branch, trac1568_new has been updated
       via  3422adaa26b0e1c24d6e230694975a4986cb0965 (commit)
      from  4dbcf3b666bf27ae2c3018007e163235e5c326e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3422adaa26b0e1c24d6e230694975a4986cb0965
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Mar 12 21:40:51 2012 +0100

    [1568] Remove a throw

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/buffer.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/buffer.h b/src/lib/util/buffer.h
index a885db1..b8cc12d 100644
--- a/src/lib/util/buffer.h
+++ b/src/lib/util/buffer.h
@@ -380,9 +380,7 @@ public:
     /// \param pos The position in the buffer to be returned.
     uint8_t operator[](size_t pos) const
     {
-        if (pos >= size_) {
-            isc_throw(InvalidBufferPosition, "read at invalid position");
-        }
+        assert (pos < size_);
         return (buffer_[pos]);
     }
     //@}



More information about the bind10-changes mailing list