summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-21 22:17:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commit6d39be4570eb0dd8b76fb3319d89ab687cb38362 (patch)
tree4e7b1521e5f8ff59e192acee2a8736a4733756b2 /spline-widget/spline.cpp
parente82b071bf96b9b514c575c87d261d28d7321c80f (diff)
spline-widget: return mem<settings> and not settings&
Diffstat (limited to 'spline-widget/spline.cpp')
-rw-r--r--spline-widget/spline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/spline-widget/spline.cpp b/spline-widget/spline.cpp
index a84f0d05..4f60181e 100644
--- a/spline-widget/spline.cpp
+++ b/spline-widget/spline.cpp
@@ -373,16 +373,16 @@ void spline::recompute()
}
// the return value is only safe to use with no spline::set_bundle calls
-spline::settings& spline::get_settings()
+mem<spline::settings> spline::get_settings()
{
QMutexLocker foo(&_mutex);
- return *s;
+ return s;
}
-const spline::settings& spline::get_settings() const
+mem<const spline::settings> spline::get_settings() const
{
QMutexLocker foo(&_mutex);
- return *s;
+ return s;
}
int spline::precision(const QList<QPointF>& points) const