Skip to content

Commit 2d8994e

Browse files
authored
Merge pull request #3493 from tautschnig/remove-useless-const
Remove "const" without effect
2 parents d67cf77 + b6a9176 commit 2d8994e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ symbol_exprt java_bytecode_convert_methodt::tmp_variable(
189189
return result;
190190
}
191191

192-
/// Returns a symbol_exprt indicating a local variable suitable to load/store
192+
/// Returns an expression indicating a local variable suitable to load/store
193193
/// from a bytecode at address `address` a value of type `type_char` stored in
194194
/// the JVM's slot `arg`.
195195
///
@@ -204,7 +204,8 @@ symbol_exprt java_bytecode_convert_methodt::tmp_variable(
204204
/// Indicates whether we should return the original symbol_exprt or a
205205
/// typecast_exprt if the type of the symbol_exprt does not equal that
206206
/// represented by `type_char`.
207-
const exprt java_bytecode_convert_methodt::variable(
207+
/// \return symbol_exprt or type-cast symbol_exprt
208+
exprt java_bytecode_convert_methodt::variable(
208209
const exprt &arg,
209210
char type_char,
210211
size_t address,

jbmc/src/java_bytecode/java_bytecode_convert_method_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class java_bytecode_convert_methodt:public messaget
151151
NO_CAST
152152
};
153153

154-
const exprt variable(
154+
exprt variable(
155155
const exprt &arg,
156156
char type_char,
157157
size_t address,

0 commit comments

Comments
 (0)