Skip to content

Commit 3986b03

Browse files
committed
Fix casting away const in cpp_usingt::name
This issue is relatively minor as the const is immediately re-added.
1 parent ae8aca2 commit 3986b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/cpp_using.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class cpp_usingt:public irept
2828

2929
const cpp_namet &name() const
3030
{
31-
return (cpp_namet &)find(ID_name);
31+
return (const cpp_namet &)find(ID_name);
3232
}
3333

3434
bool get_namespace() const

0 commit comments

Comments
 (0)