summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2018-12-07 16:19:13 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-12-10 08:32:45 +0000
commitcf54ebd6f3591c09a7d3c1e5fdde9d8be163f02d (patch)
treeffc532db256018f7f09b141c330e15dca30b685b /src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp
parent69c3a54687eed3bca968aaba4efd87334df7304f (diff)
Fix undoing material type change doesn't update ref materials bugv2.2.0-rcv2.2.02.2
Also removed a previous hot fix (QT3DS-2768) and some cleanups in the undo/redo system. Task-number: QT3DS-2827 Change-Id: Id1bb8e89c4121dd3cf447bf29c1a0d02d034e247 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp')
-rw-r--r--src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp b/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp
index 3171f50c..d7cdfb73 100644
--- a/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp
+++ b/src/Authoring/Client/Code/Core/Doc/DocumentEditor.cpp
@@ -5703,5 +5703,5 @@ void CUpdateableDocumentEditor::RollbackEditor()
std::shared_ptr<IInternalDocumentEditor> IInternalDocumentEditor::CreateEditor(CDoc &doc)
{
- return std::shared_ptr<IInternalDocumentEditor>(new CDocEditor(doc));
+ return std::make_shared<CDocEditor>(doc);
}