@@ -49,7 +49,7 @@ symbol_tablet load_java_class(
49
49
const std::string &main)
50
50
{
51
51
return load_goto_model_from_java_class (java_class_name, class_path, main)
52
- -> get_symbol_table ();
52
+ . get_symbol_table ();
53
53
}
54
54
55
55
// / Returns the symbol table from \ref load_goto_model_from_java_class
@@ -66,7 +66,7 @@ symbol_tablet load_java_class(
66
66
main,
67
67
std::move (java_lang),
68
68
command_line)
69
- -> get_symbol_table ();
69
+ . get_symbol_table ();
70
70
}
71
71
72
72
// / Go through the process of loading, type-checking and finalising a
@@ -83,7 +83,7 @@ symbol_tablet load_java_class(
83
83
// / language
84
84
// / \return The goto model containing both the functions and the symbol table
85
85
// / from loading this class.
86
- std::unique_ptr< goto_modelt> load_goto_model_from_java_class (
86
+ goto_modelt load_goto_model_from_java_class (
87
87
const std::string &java_class_name,
88
88
const std::string &class_path,
89
89
const std::string &main,
@@ -153,7 +153,7 @@ std::unique_ptr<goto_modelt> load_goto_model_from_java_class(
153
153
// Check your working directory and the class path is correctly configured
154
154
// as this often indicates that one of these is wrong.
155
155
REQUIRE_FALSE (class_type.get_bool (ID_incomplete_class));
156
- return maybe_goto_model;
156
+ return std::move (* maybe_goto_model) ;
157
157
}
158
158
159
159
// / Returns the symbol table from \ref load_goto_model_from_java_class
@@ -180,7 +180,7 @@ symbol_tablet load_java_class(
180
180
// / See \ref load_goto_model_from_java_class
181
181
// / With the command line configured to disable lazy loading and string
182
182
// / refinement and the language set to be the default java_bytecode language
183
- std::unique_ptr< goto_modelt> load_goto_model_from_java_class (
183
+ goto_modelt load_goto_model_from_java_class (
184
184
const std::string &java_class_name,
185
185
const std::string &class_path,
186
186
const std::string &main)
0 commit comments