From 8edc89703e5e0be26471432bc0e953d694bc92a5 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 18 Mar 2018 17:43:27 +0100 Subject: -Get copy for result --- result/stringresult.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'result/stringresult.cpp') diff --git a/result/stringresult.cpp b/result/stringresult.cpp index 2d9214d..f0ff699 100644 --- a/result/stringresult.cpp +++ b/result/stringresult.cpp @@ -67,3 +67,10 @@ bool StringResult::hasHighLight() const { return m_highlight; } +Result* StringResult::getCopy() const +{ + auto copy = new StringResult(); + copy->setHighLight(m_highlight); + copy->setText(m_value); + return copy; +} -- cgit v1.2.3-70-g09d2