summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-10-19 20:16:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-10-19 20:16:24 +0100
commit12778d74c8ca3f765d850e9897d23df2a34fa82e (patch)
tree6fd2f401522a2e821b4566f5432f0eb3f0101ba7
parentMerge improvements from tidy-arrays branch (diff)
downloadgentoobrowse-api-12778d74c8ca3f765d850e9897d23df2a34fa82e.tar.bz2
gentoobrowse-api-12778d74c8ca3f765d850e9897d23df2a34fa82e.tar.xz
gentoobrowse-api-12778d74c8ca3f765d850e9897d23df2a34fa82e.zip
Slicer 1.7 compatibilitygentoobrowse-api-0.9.1.1
-rw-r--r--gentoobrowse-api/domain/converters.cpp8
-rw-r--r--gentoobrowse-api/domain/converters.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/gentoobrowse-api/domain/converters.cpp b/gentoobrowse-api/domain/converters.cpp
index b4748cd..8a3abbd 100644
--- a/gentoobrowse-api/domain/converters.cpp
+++ b/gentoobrowse-api/domain/converters.cpp
@@ -14,18 +14,18 @@ namespace Slicer {
}
template<typename T>
- void PqArray<T>::SetValue(ValueSourcePtr s)
+ void PqArray<T>::SetValue(ValueSource && s)
{
std::string in;
- s->set(in);
+ s.set(in);
*this->Model = unpackPqArray<T>(in);
}
template<typename T>
bool
- PqArray<T>::GetValue(ValueTargetPtr s)
+ PqArray<T>::GetValue(ValueTarget && s)
{
- s->get(packPqArray(*this->Model));
+ s.get(packPqArray(*this->Model));
return true;
}
diff --git a/gentoobrowse-api/domain/converters.h b/gentoobrowse-api/domain/converters.h
index 404b9a1..be1a522 100644
--- a/gentoobrowse-api/domain/converters.h
+++ b/gentoobrowse-api/domain/converters.h
@@ -12,8 +12,8 @@ namespace Slicer {
public:
PqArray(std::vector<T> *);
- void SetValue(ValueSourcePtr) override;
- bool GetValue(ValueTargetPtr) override;
+ void SetValue(ValueSource &&) override;
+ bool GetValue(ValueTarget &&) override;
};
DLL_PUBLIC