diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-12 20:24:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-12 20:25:40 +0100 |
commit | 28fe3628ed22a17eeb5a402724fea6558b2ba6bf (patch) | |
tree | 44ffbfaddb463e891d34b0ed46dcde032d9e7880 /include/o3tl/deleter.hxx | |
parent | acc04202e8b1e69381355eaae5ba456bee6fd9c9 (diff) |
o3tl::default_deleter->boost::checked_deleter
has the same result
Change-Id: Ifbebcfb26c6fc54d03522c924da86837d7dfa3b9
Diffstat (limited to 'include/o3tl/deleter.hxx')
-rw-r--r-- | include/o3tl/deleter.hxx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/o3tl/deleter.hxx b/include/o3tl/deleter.hxx deleted file mode 100644 index 7f9e50dd9146..000000000000 --- a/include/o3tl/deleter.hxx +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDED_O3TL_DELETER_HXX -#define INCLUDED_O3TL_DELETER_HXX - -#include <functional> - -namespace o3tl { - -/** - * Function object to allow deleting instances stored in STL containers as - * pointers. - */ -template<typename T> -struct default_deleter : public std::unary_function<T*, void> -{ - void operator() (T* p) - { - delete p; - } -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |