summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/converters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/domain/converters.cpp')
-rw-r--r--gentoobrowse-api/domain/converters.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gentoobrowse-api/domain/converters.cpp b/gentoobrowse-api/domain/converters.cpp
index aa51c26..293edab 100644
--- a/gentoobrowse-api/domain/converters.cpp
+++ b/gentoobrowse-api/domain/converters.cpp
@@ -16,12 +16,12 @@ namespace Slicer {
}
template<typename T>
- PqArray<T>::PqArray(std::vector<T> & l) :
+ PqArray<T>::PqArray(std::vector<T> * l) :
ModelPartForSequence<std::vector<T>>(l)
{
}
- PqArray<std::string>::PqArray(::Gentoo::StringList & sl) :
+ PqArray<std::string>::PqArray(::Gentoo::StringList * sl) :
ModelPartForSequence<::Gentoo::StringList>(sl)
{
}
@@ -29,36 +29,36 @@ namespace Slicer {
template<typename T>
void PqArray<T>::SetValue(ValueSourcePtr s)
{
- this->Model.clear();
+ this->Model->clear();
std::string v;
s->set(v);
if (v.size() < 3) return;
typedef boost::algorithm::split_iterator<std::string::iterator> string_split_iterator;
string_split_iterator sfi(++v.begin(), --v.end(), boost::algorithm::first_finder(",", boost::algorithm::is_iequal()));
for(auto it = sfi; it != string_split_iterator(); ++it) {
- this->Model.push_back(boost::lexical_cast<T>(*it));
+ this->Model->push_back(boost::lexical_cast<T>(*it));
}
}
void PqArray<std::string>::SetValue(ValueSourcePtr s)
{
- Model.clear();
+ Model->clear();
std::string v;
s->set(v);
- unpackPqTextArray(v, Model);
+ unpackPqTextArray(v, *Model);
}
template<typename T>
void
PqArray<T>::GetValue(ValueTargetPtr s)
{
- s->get(packPqArray(this->Model));
+ s->get(packPqArray(*this->Model));
}
void
PqArray<std::string>::GetValue(ValueTargetPtr s)
{
- s->get(packPqArray(this->Model));
+ s->get(packPqArray(*this->Model));
}
template class PqArray<Ice::Int>;