Page MenuHomePhabricator

macpatch.patch

Authored By
fangerau
Sep 28 2010, 4:57 PM
Size
2 KB
Referenced Files
None
Subscribers
None

macpatch.patch

Index: Core/Code/DataManagement/mitkPropertyList.cpp
===================================================================
--- Core/Code/DataManagement/mitkPropertyList.cpp (revision 26421)
+++ Core/Code/DataManagement/mitkPropertyList.cpp (working copy)
@@ -239,38 +239,6 @@
}
}
-
-#ifndef _MSC_VER
-template <typename T>
-bool mitk::PropertyList::GetPropertyValue(const char* propertyKey, T & value) const
-{
- GenericProperty<T>* gp= dynamic_cast<GenericProperty<T>*>(GetProperty(propertyKey) );
- if ( gp != NULL )
- {
- value = gp->GetValue();
- return true;
- }
- return false;
-}
-
-template bool mitk::PropertyList::GetPropertyValue<double>(char const*, double&) const;
-template bool mitk::PropertyList::GetPropertyValue<float>(char const*, float&) const;
-template bool mitk::PropertyList::GetPropertyValue<int>(char const*, int&) const;
-template bool mitk::PropertyList::GetPropertyValue<bool>(char const*, bool&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::Vector3D>(char const*, mitk::Vector3D&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::Point3D>(char const*, mitk::Point3D&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::Point4D>(char const*, mitk::Point4D&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::Point3I>(char const*, mitk::Point3I&) const;
-
-template bool mitk::PropertyList::GetPropertyValue<mitk::FloatLookupTable>(char const*, mitk::FloatLookupTable&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::BoolLookupTable>(char const*, mitk::BoolLookupTable&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::IntLookupTable>(char const*, mitk::IntLookupTable&) const;
-template bool mitk::PropertyList::GetPropertyValue<mitk::StringLookupTable>(char const*, mitk::StringLookupTable&) const;
-
-
-#endif
-
-
bool mitk::PropertyList::GetBoolProperty(const char* propertyKey, bool& boolValue) const
{
return GetPropertyValue<bool>(propertyKey, boolValue);
Index: Core/Code/DataManagement/mitkPropertyList.h
===================================================================
--- Core/Code/DataManagement/mitkPropertyList.h (revision 26421)
+++ Core/Code/DataManagement/mitkPropertyList.h (working copy)
@@ -120,7 +120,6 @@
//## @return @a true property was found
template <typename T>
bool GetPropertyValue(const char* propertyKey, T & value) const
-#ifdef _MSC_VER
{
GenericProperty<T>* gp= dynamic_cast<GenericProperty<T>*>(GetProperty(propertyKey));
if ( gp != NULL )
@@ -130,9 +129,6 @@
}
return false;
}
-#else
- ;
-#endif
/**
* @brief Convenience method to access the value of a BoolProperty

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
498
Default Alt Text
macpatch.patch (2 KB)

Event Timeline