diff --git a/indra/libhacd/hacdHACD.h b/indra/libhacd/hacdHACD.h index bdbbc472b..0c9f11653 100644 --- a/indra/libhacd/hacdHACD.h +++ b/indra/libhacd/hacdHACD.h @@ -76,6 +76,7 @@ namespace HACD { public: virtual void operator()( char const *aMsg, double aProgress, double aConcavity, size_t aVertices) = 0; + virtual ~ICallback() {} }; typedef ICallback* CallBackFunction; diff --git a/indra/llcommon/sguuidhash.h b/indra/llcommon/sguuidhash.h new file mode 100644 index 000000000..b6b65aa0a --- /dev/null +++ b/indra/llcommon/sguuidhash.h @@ -0,0 +1,36 @@ +/* Copyright (C) 2013 Siana Gearz + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA */ + +#ifndef SGUUIDHASH_H +#define SGUUIDHASH_H + +#include "lluuid.h" +#include +#include + +namespace boost { + template<> class hash { + public: + size_t operator()(const LLUUID& id ) const + { + return *reinterpret_cast(id.mData); + } + }; +} + + +#endif