summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/parser.cpp4
-rw-r--r--slicer/slicer/parser.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/slicer/slicer/parser.cpp b/slicer/slicer/parser.cpp
index d401f5b..d84b248 100644
--- a/slicer/slicer/parser.cpp
+++ b/slicer/slicer/parser.cpp
@@ -428,10 +428,10 @@ namespace Slicer {
}
- std::vector<Slicer::ConversionSpec>
+ Slicer::Conversions
Slicer::getConversions(const std::list<std::string> & dm)
{
- std::vector<ConversionSpec> rtn;
+ Conversions rtn;
auto conversions = metaDataValues("slicer:conversion:", dm);
for (const auto & conversion : conversions) {
auto split = metaDataSplit(conversion);
diff --git a/slicer/slicer/parser.h b/slicer/slicer/parser.h
index a29ede9..9d880d8 100644
--- a/slicer/slicer/parser.h
+++ b/slicer/slicer/parser.h
@@ -16,6 +16,7 @@ namespace Slicer {
std::string ConvertToModelFunc;
std::string ConvertToExchangeFunc;
};
+ typedef std::vector<ConversionSpec> Conversions;
Slicer(FILE * c);
@@ -48,7 +49,7 @@ namespace Slicer {
void defineConversions(Slice::DataMemberPtr dm) const;
void copyMetadata(const std::list<std::string> & metadata) const;
- static std::vector<ConversionSpec> getConversions(const std::list<std::string> & metadata);
+ static Conversions getConversions(const std::list<std::string> & metadata);
unsigned int components;
FILE * cpp;