michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #pragma once michael@0: michael@0: /* michael@0: * Helper class to allow smart pointers to stack objects to be constructed for ease of unit testing. michael@0: * Recycled here to help expose a shared_ptr interface to objects which are really raw pointers. michael@0: */ michael@0: struct null_deleter michael@0: { michael@0: void operator()(void const *) const michael@0: { michael@0: } michael@0: };