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
8484 if (!_engine) {
8585 return ScriptEnginePointer();
8686 }
87− return _engine->sharedFromThis();
87+ return _engine->shared_from_this();
8888 }
8989
9090 ScriptValueIteratorPointer ScriptValueQtWrapper::newIterator() const {
91− return ScriptValueIteratorPointer(new ScriptValueIteratorQtWrapper(_engine, _value));
91+ return std::make_shared<ScriptValueIteratorQtWrapper>(_engine, _value);
9292 }
9393
9494 ScriptValue 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