summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:37:36 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-01-07 22:51:41 +0100
commitdf4b92bd1df204e7fb0d22e73e143d205d74aea6 (patch)
tree36c2ddc9d4b0d1457ebcd8cb98623c53abd1c9c7 /apt-pkg/edsp.cc
parent1b3e0a6a4bf673bd7d1da4a481eeb0a436430be8 (diff)
Rename _count() macro to APT_ARRAY_SIZE()
Diffstat (limited to 'apt-pkg/edsp.cc')
-rw-r--r--apt-pkg/edsp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc
index 0d5fe150b..fe6f55dcb 100644
--- a/apt-pkg/edsp.cc
+++ b/apt-pkg/edsp.cc
@@ -94,7 +94,7 @@ static bool WriteScenarioVersion(FileFd &output, pkgCache::PkgIterator const &Pk
// WriteScenarioDependency /*{{{*/
static bool WriteScenarioDependency(FileFd &output, pkgCache::VerIterator const &Ver, bool const OnlyCritical)
{
- std::array<std::string, _count(DepMap)> dependencies;
+ std::array<std::string, APT_ARRAY_SIZE(DepMap)> dependencies;
bool orGroup = false;
for (pkgCache::DepIterator Dep = Ver.DependsList(); Dep.end() == false; ++Dep)
{
@@ -141,7 +141,7 @@ static bool WriteScenarioLimitedDependency(FileFd &output,
std::vector<bool> const &pkgset,
bool const OnlyCritical)
{
- std::array<std::string, _count(DepMap)> dependencies;
+ std::array<std::string, APT_ARRAY_SIZE(DepMap)> dependencies;
bool orGroup = false;
for (pkgCache::DepIterator Dep = Ver.DependsList(); Dep.end() == false; ++Dep)
{