diff options
Diffstat (limited to 'result/stringresult.cpp')
| -rw-r--r-- | result/stringresult.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |