layers: Clean up in-use increment for bound objects
authorTobin Ehlis <tobine@google.com>
Wed, 14 Sep 2016 12:55:51 +0000 (06:55 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 22 Sep 2016 13:21:24 +0000 (07:21 -0600)
commit162dac96d3883e8fffaa1f988043f62c06662d2e
treed8d98198be535398860f6506bb2576c2a944be8b
parentd4513979120463171eb479cdded9336eb9944da1
layers: Clean up in-use increment for bound objects

Simplify code with a single error call and in_use increment based on common
base class.
layers/core_validation.cpp