Skip to content

Commit 0cc5ae6

Browse files
Using delete to forbid copies of objects
1 parent e3b44c7 commit 0cc5ae6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/java_bytecode/java_string_library_preprocess.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class java_string_library_preprocesst:public messaget
4747
bool is_known_string_type(irep_idt class_name);
4848

4949
private:
50-
// We forbid copies of the object by making the copy operator private.
51-
java_string_library_preprocesst(const java_string_library_preprocesst &);
50+
// We forbid copies of the object
51+
java_string_library_preprocesst(
52+
const java_string_library_preprocesst &)=delete;
5253

5354
static bool java_type_matches_tag(const typet &type, const std::string &tag);
5455
static bool is_java_string_pointer_type(const typet &type);

0 commit comments

Comments
 (0)