summaryrefslogtreecommitdiff
path: root/apt-pkg/metaindex.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:15:24 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:16:17 +0100
commitd31f807a8d3f031d5efc5c3be9b76f9a9ac22d5d (patch)
tree607a4954fa794a688d2be0ab1781e3d4eecd90cc /apt-pkg/metaindex.h
parentdc911bdda7cce03bf2b4dd4cfc37bae044ad9f2a (diff)
Remove various dynamic_cast uses, use virtual methods instead
Diffstat (limited to 'apt-pkg/metaindex.h')
-rw-r--r--apt-pkg/metaindex.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h
index a44e5c21e..5e5efd5ff 100644
--- a/apt-pkg/metaindex.h
+++ b/apt-pkg/metaindex.h
@@ -102,10 +102,9 @@ public:
char const * const Type);
virtual ~metaIndex();
- // FIXME: make virtual on next abi break
- bool IsArchitectureSupported(std::string const &arch) const;
- bool IsArchitectureAllSupportedFor(IndexTarget const &target) const;
- bool HasSupportForComponent(std::string const &component) const;
+ virtual bool IsArchitectureSupported(std::string const &arch) const;
+ virtual bool IsArchitectureAllSupportedFor(IndexTarget const &target) const;
+ virtual bool HasSupportForComponent(std::string const &component) const;
// FIXME: should be members of the class on abi break
APT_HIDDEN void SetOrigin(std::string const &origin);
APT_HIDDEN void SetLabel(std::string const &label);