clean up code

This commit is contained in:
Alexandra Heuschling
2021-01-18 16:02:31 +01:00
parent f46f4b2348
commit cc75d6a040
2 changed files with 3 additions and 12 deletions

View File

@@ -353,7 +353,7 @@ bool _OMWriter_::write_binary(std::ostream& _os, BaseExporter& _be,
bytes += store(_os, chunk_header, swap); bytes += store(_os, chunk_header, swap);
int nHE; unsigned int nHE;
for (i = 0, nHE = header.n_edges_*2; i < nHE; ++i) for (i = 0, nHE = header.n_edges_*2; i < nHE; ++i)
bytes += vector_store(_os, _be.texcoord(HalfedgeHandle(i)), swap); bytes += vector_store(_os, _be.texcoord(HalfedgeHandle(i)), swap);

View File

@@ -112,7 +112,7 @@ template <> inline void PropertyCreator::create_property<MeshHandle> (BaseKer
/// Helper class that contains the implementation of the create_<HandleT>_property methods. /// Helper class that contains the implementation of the create_<HandleT>_property methods.
/// Implementation is injected into PropertyCreatorT. /// Implementation is injected into PropertyCreatorT.
template <typename PropertyCreatorT> template <typename PropertyCreatorT>
class OPENMESHDLLEXPORT PropertyCreatorImpl : public PropertyCreator class PropertyCreatorImpl : public PropertyCreator
{ {
public: public:
std::string type_id_string() override { return get_type_name<typename PropertyCreatorT::type>(); } std::string type_id_string() override { return get_type_name<typename PropertyCreatorT::type>(); }
@@ -135,7 +135,7 @@ protected:
/// Actual PropertyCreators specialize this class in order to add properties of type T /// Actual PropertyCreators specialize this class in order to add properties of type T
namespace { namespace {
template <typename T> template <typename T>
class OPENMESHDLLEXPORT PropertyCreatorT : public PropertyCreatorImpl<PropertyCreatorT<T>> class PropertyCreatorT : public PropertyCreatorImpl<PropertyCreatorT<T>>
{ {
}; };
} }
@@ -195,15 +195,6 @@ public:
return; return;
} }
//----------------------------------------------------
// for (const auto& pc : property_creators_)
// if (pc->can_you_create(_type_name))
// {
// pc->create_property<HandleT>(_mesh, _property_name);
// return;
// }
//------------------------------------------------------
omerr() << "No property creator registered that can create a property of type " << _type_name << std::endl; omerr() << "No property creator registered that can create a property of type " << _type_name << std::endl;
omerr() << "You need to register your custom type using OM_REGISTER_PROPERTY_TYPE(ClassName) and declare the struct binary<ClassName>.\ omerr() << "You need to register your custom type using OM_REGISTER_PROPERTY_TYPE(ClassName) and declare the struct binary<ClassName>.\
See documentation for more details." << std::endl; See documentation for more details." << std::endl;