diff options
| author | 2018-03-18 17:43:27 +0100 | |
|---|---|---|
| committer | 2018-03-18 17:43:27 +0100 | |
| commit | 8edc89703e5e0be26471432bc0e953d694bc92a5 (patch) | |
| tree | 1b5598828986b747dbed9a1b77a9a0494f014779 /result/stringresult.cpp | |
| parent | 86bd8dbc2bba4023ef4d7e3ba9c21a4396c9ccd1 (diff) | |
| download | OneRoll-8edc89703e5e0be26471432bc0e953d694bc92a5.tar.gz OneRoll-8edc89703e5e0be26471432bc0e953d694bc92a5.zip | |
-Get copy for result
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; +} |