From 12778d74c8ca3f765d850e9897d23df2a34fa82e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 19 Oct 2017 20:16:24 +0100 Subject: Slicer 1.7 compatibility --- gentoobrowse-api/domain/converters.cpp | 8 ++++---- gentoobrowse-api/domain/converters.h | 4 ++-- 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 - void PqArray::SetValue(ValueSourcePtr s) + void PqArray::SetValue(ValueSource && s) { std::string in; - s->set(in); + s.set(in); *this->Model = unpackPqArray(in); } template bool - PqArray::GetValue(ValueTargetPtr s) + PqArray::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 *); - void SetValue(ValueSourcePtr) override; - bool GetValue(ValueTargetPtr) override; + void SetValue(ValueSource &&) override; + bool GetValue(ValueTarget &&) override; }; DLL_PUBLIC -- cgit v1.2.3