History

convert script engine variables from QSharedPointer to std::shared_ptr

Heather Anderson committed 5 years ago

Commit 70fbe761 parent 82535ca49 files · +194 −164Browse files

Showing the changes to libraries/script-engine/src/qtscript/ScriptProgramQtWrapper.cpp (1 of 49 files). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptProgramQtWrapper.cpp+1−1
@@ -26,7 +26,7 @@ ScriptProgramQtWrapper* ScriptProgramQtWrapper::unwrap(ScriptProgramPointer val) · 25 unmodified lines
2626
2727 ScriptSyntaxCheckResultPointer ScriptProgramQtWrapper::checkSyntax() const {
2828 QScriptSyntaxCheckResult result = _engine->checkSyntax(_value.sourceCode());
29− return ScriptSyntaxCheckResultPointer(new ScriptSyntaxCheckResultQtWrapper(std::move(result)));
29+ return std::make_shared<ScriptSyntaxCheckResultQtWrapper>(std::move(result));
3030 }
3131
3232 QString ScriptProgramQtWrapper::fileName() const {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t