Skip to content

Commit 967b2f8

Browse files
committed
Script: Add missing const to bytecode()
1 parent a7547aa commit 967b2f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/engine/script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Script::Script(Target *target, Engine *engine) :
1212
}
1313

1414
/*! Returns the bytecode array. */
15-
unsigned int *Script::bytecode()
15+
unsigned int *Script::bytecode() const
1616
{
1717
return m_bytecode;
1818
}

src/engine/script.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LIBSCRATCHCPP_EXPORT Script
1414
Script(Target *target, Engine *engine);
1515
Script(const Script &) = delete;
1616

17-
unsigned int *bytecode();
17+
unsigned int *bytecode() const;
1818
void setBytecode(const std::vector<unsigned int> &code);
1919

2020
void setProcedures(const std::vector<unsigned int *> &procedures);

0 commit comments

Comments
 (0)