Showing the changes to libraries/script-engine/src/qtscript/ScriptValueQtWrapper.cpp (1 of 49 files). Show all
Unified · Split
| @@ -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 | ||
| 90 | ScriptValueIteratorPointer ScriptValueQtWrapper::newIterator() const { | 90 | ScriptValueIteratorPointer ScriptValueQtWrapper::newIterator() const { |
| 91 | return ScriptValueIteratorPointer(new ScriptValueIteratorQtWrapper(_engine, _value)); | 91 | return std::make_shared<ScriptValueIteratorQtWrapper>(_engine, _value); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | ScriptValue ScriptValueQtWrapper::property(const QString& name, const ScriptValue::ResolveFlags& mode) const { | 94 | ScriptValue ScriptValueQtWrapper::property(const QString& name, const ScriptValue::ResolveFlags& mode) const { |