Skip to content

Commit 0d95cc5

Browse files
author
Daniel Kroening
committed
missing const method qualifiers
1 parent 8befd02 commit 0d95cc5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/goto-cc/compile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ compilet::~compilet()
662662
delete_directory(*it);
663663
}
664664

665-
unsigned compilet::function_body_count(const goto_functionst &functions)
665+
unsigned compilet::function_body_count(const goto_functionst &functions) const
666666
{
667667
int fbs=0;
668668

src/goto-cc/compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class compilet:public language_uit
9494
cmdlinet &cmdline;
9595
bool warning_is_fatal;
9696

97-
unsigned function_body_count(const goto_functionst &);
97+
unsigned function_body_count(const goto_functionst &) const;
9898

9999
void add_compiler_specific_defines(class configt &config) const;
100100

src/goto-cc/linker_script_merge.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ int linker_script_merget::add_linker_script_definitions()
114114

115115
linker_script_merget::linker_script_merget(
116116
compilet &compiler,
117-
std::list<std::string> &elf_binaries,
118-
std::list<std::string> &goto_binaries,
119-
cmdlinet &cmdline,
117+
const std::list<std::string> &elf_binaries,
118+
const std::list<std::string> &goto_binaries,
119+
const cmdlinet &cmdline,
120120
message_handlert &message_handler) :
121121
messaget(message_handler), compiler(compiler),
122122
elf_binaries(elf_binaries), goto_binaries(goto_binaries),

src/goto-cc/linker_script_merge.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ class linker_script_merget:public messaget
8282
typedef std::map<irep_idt, std::pair<symbol_exprt, exprt>> linker_valuest;
8383

8484
linker_script_merget(
85-
compilet &compiler,
86-
std::list<std::string> &elf_binaries,
87-
std::list<std::string> &goto_binaries,
88-
cmdlinet &cmdline,
89-
message_handlert &message_handler);
85+
compilet &,
86+
const std::list<std::string> &elf_binaries,
87+
const std::list<std::string> &goto_binaries,
88+
const cmdlinet &,
89+
message_handlert &);
9090

9191
protected:
9292
compilet &compiler;
93-
std::list<std::string> &elf_binaries;
94-
std::list<std::string> &goto_binaries;
95-
cmdlinet &cmdline;
93+
const std::list<std::string> &elf_binaries;
94+
const std::list<std::string> &goto_binaries;
95+
const cmdlinet &cmdline;
9696

9797
/// \brief The "shapes" of expressions to be replaced by a pointer
9898
///

0 commit comments

Comments
 (0)