Skip to content

Commit 569b4fc

Browse files
committed
Fix pointer-offset iterator
1 parent 11a4d3d commit 569b4fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/util/pointer_offset_size.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Author: Daniel Kroening, [email protected]
2121

2222
#include "pointer_offset_size.h"
2323

24-
member_offset_iterator::member_offset_iterator(const struct_typet _type,
25-
const namespacet _ns) :
24+
member_offset_iterator::member_offset_iterator(const struct_typet& _type,
25+
const namespacet& _ns) :
2626
type(_type),
2727
ns(_ns),
2828
bit_field_bits(0),

src/util/pointer_offset_size.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class member_offset_iterator {
2828
const namespacet &ns;
2929
size_t bit_field_bits;
3030
public:
31-
member_offset_iterator(const struct_typet _type,
32-
const namespacet _ns);
31+
member_offset_iterator(const struct_typet& _type,
32+
const namespacet& _ns);
3333
member_offset_iterator& operator++();
3434
const refst& operator*() const { return current; }
3535
const refst* operator->() const { return &current; }

0 commit comments

Comments
 (0)