Skip to content

Commit b603703

Browse files
committed
Add missing override
1 parent 70da606 commit b603703

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/namespace.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class namespacet:public namespace_baset
9898

9999
/// See namespace_baset::lookup(). Note that \ref namespacet has two symbol
100100
/// tables.
101-
virtual bool lookup(const irep_idt &name, const symbolt *&symbol) const;
101+
bool lookup(const irep_idt &name, const symbolt *&symbol) const override;
102102

103103
/// See documentation for namespace_baset::get_max().
104-
virtual unsigned get_max(const std::string &prefix) const;
104+
unsigned get_max(const std::string &prefix) const override;
105105

106106
const symbol_tablet &get_symbol_table() const
107107
{
@@ -129,8 +129,8 @@ class multi_namespacet:public namespacet
129129
// these do the actual lookup
130130
using namespace_baset::lookup;
131131

132-
virtual bool lookup(const irep_idt &name, const symbolt *&symbol) const;
133-
virtual unsigned get_max(const std::string &prefix) const;
132+
bool lookup(const irep_idt &name, const symbolt *&symbol) const override;
133+
unsigned get_max(const std::string &prefix) const override;
134134

135135
void add(const symbol_tablet &symbol_table)
136136
{

0 commit comments

Comments
 (0)