History

rework ScriptValue to act like a stack variable rather than a pointer

Heather Anderson committed 5 years ago

Commit 85810221 parent f209c51170 files · +2837 −2594Browse files

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

Unified · Split

libraries/script-engine/src/qtscript/ScriptValueIteratorQtWrapper.cpp+2−2
@@ -27,7 +27,7 @@ void ScriptValueIteratorQtWrapper::next() { · 26 unmodified lines
27 _value.next();27 _value.next();
28}28}
29 29
30ScriptValuePointer ScriptValueIteratorQtWrapper::value() const {30ScriptValue ScriptValueIteratorQtWrapper::value() const {
31 QScriptValue result = _value.value();31 QScriptValue result = _value.value();
32 return ScriptValuePointer(new ScriptValueQtWrapper(_engine, std::move(result)));32 return ScriptValue(new ScriptValueQtWrapper(_engine, std::move(result)));
33}33}

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