Cleanups: start working on -Wsuggest-override, add some "final". NFCI.

This commit is contained in:
Markus F.X.J. Oberhumer
2021-03-28 21:19:29 +02:00
parent 1518e5bc98
commit f6ff5a2805
18 changed files with 135 additions and 127 deletions
+2 -2
View File
@@ -596,7 +596,7 @@ class PeFile::ImportLinker : public ElfLinkerAMD64
{
struct tstr : private ::noncopyable
{
char *s;
char *s = nullptr;
explicit tstr(char *str) : s(str) {}
~tstr() { delete [] s; }
operator char *() const { return s; }
@@ -717,7 +717,7 @@ class PeFile::ImportLinker : public ElfLinkerAMD64
return strcmp(s1->name, s2->name);
}
virtual void alignCode(unsigned len) { alignWithByte(len, 0); }
virtual void alignCode(unsigned len) override { alignWithByte(len, 0); }
const Section *getThunk(const char *dll, const char *proc, char tsep) const
{