summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/domain/converters.cpp16
-rw-r--r--gentoobrowse-api/domain/converters.h4
2 files changed, 10 insertions, 10 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>;
diff --git a/gentoobrowse-api/domain/converters.h b/gentoobrowse-api/domain/converters.h
index 0bd7e91..f286144 100644
--- a/gentoobrowse-api/domain/converters.h
+++ b/gentoobrowse-api/domain/converters.h
@@ -10,7 +10,7 @@ namespace Slicer {
template<typename T>
class DLL_PUBLIC PqArray : public ModelPartForSequence<std::vector<T>> {
public:
- PqArray(std::vector<T> &);
+ PqArray(std::vector<T> *);
void SetValue(ValueSourcePtr) override;
void GetValue(ValueTargetPtr) override;
@@ -19,7 +19,7 @@ namespace Slicer {
template<>
class DLL_PUBLIC PqArray<std::string> : public ModelPartForSequence<::Gentoo::StringList> {
public:
- PqArray(::Gentoo::StringList &);
+ PqArray(::Gentoo::StringList *);
void SetValue(ValueSourcePtr) override;
void GetValue(ValueTargetPtr) override;