We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6524f6 commit 9e1605dCopy full SHA for 9e1605d
1 file changed
src/compiler/codestat.cc
@@ -25,13 +25,11 @@
25
class opstat
26
{
27
private:
28
- std::vector<codew> &code;
29
std::map<enum tokens, int> c1;
30
std::map<std::pair<enum tokens, enum tokens>, int> c2;
31
std::map<std::pair<enum tokens, int>, int> c3;
32
public:
33
- opstat(std::vector<codew> &code):
34
- code(code)
+ opstat(const std::vector<codew> &code)
35
36
enum tokens old = TOK_LAST_TOKEN;
37
for(auto &c: code)
0 commit comments