diff --git a/Plugins/org.mitk.simulation/src/internal/mitkGetData.h b/Plugins/org.mitk.simulation/src/internal/mitkGetData.h index 2d3275f4de..8d97cc482c 100644 --- a/Plugins/org.mitk.simulation/src/internal/mitkGetData.h +++ b/Plugins/org.mitk.simulation/src/internal/mitkGetData.h @@ -1,53 +1,53 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef mitkGetData_h #define mitkGetData_h #include "mitkGetDataStorage.h" #include namespace mitk { template typename T::Pointer GetData(const std::string& name) { DataStorage::Pointer dataStorage = GetDataStorage(); if (dataStorage.IsNull()) return NULL; - TNodePredicateDataType::Pointer predicate = TNodePredicateDataType::New(); + typename TNodePredicateDataType::Pointer predicate = TNodePredicateDataType::New(); DataStorage::SetOfObjects::ConstPointer subset = dataStorage->GetSubset(predicate); for (DataStorage::SetOfObjects::ConstIterator it = subset->Begin(); it != subset->End(); ++it) { DataNode::Pointer dataNode = it.Value(); if (dataNode->GetName() == name) { typename T::Pointer data = static_cast(dataNode->GetData()); if (data.IsNotNull()) return data; } } return NULL; } } #endif