Skip to content

Commit e623e04

Browse files
committed
VirtualMachine: Use data() function of vector to get a pointer
1 parent f6f130d commit e623e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/virtualmachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void VirtualMachine::setLists(const std::vector<List *> &lists)
6565
void VirtualMachine::setBytecode(const std::vector<unsigned int> &code)
6666
{
6767
m_bytecodeVector = code;
68-
m_bytecode = &m_bytecodeVector[0];
68+
m_bytecode = m_bytecodeVector.data();
6969
}
7070

7171
/*! Runs the script. */

0 commit comments

Comments
 (0)