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/ScriptValueQtWrapper.cpp (1 of 49 files). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptValueQtWrapper.cpp+2−2
@@ -84,11 +84,11 @@ ScriptEnginePointer ScriptValueQtWrapper::engine() const { · 83 unmodified lines
84 if (!_engine) {84 if (!_engine) {
85 return ScriptEnginePointer();85 return ScriptEnginePointer();
86 }86 }
87 return _engine->sharedFromThis();87 return _engine->shared_from_this();
88}88}
89 89
90ScriptValueIteratorPointer ScriptValueQtWrapper::newIterator() const {90ScriptValueIteratorPointer ScriptValueQtWrapper::newIterator() const {
91 return ScriptValueIteratorPointer(new ScriptValueIteratorQtWrapper(_engine, _value));91 return std::make_shared<ScriptValueIteratorQtWrapper>(_engine, _value);
92}92}
93 93
94ScriptValue ScriptValueQtWrapper::property(const QString& name, const ScriptValue::ResolveFlags& mode) const {94ScriptValue ScriptValueQtWrapper::property(const QString& name, const ScriptValue::ResolveFlags& mode) 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