From f3c5d176d6d0c91ff2cc80f12eed43a664d3d779 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 18 Jun 2025 19:39:15 +0000 Subject: Fix indentation compiler warning with clang This commit fixes the following compiler warning. cacheiterators.h:423:54: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] --- apt-pkg/cacheiterators.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apt-pkg/cacheiterators.h') diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index fd74e11c4..45e45cc83 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -419,8 +419,11 @@ class APT_PUBLIC pkgCache::PrvIterator : public Iterator } // Iteration - inline PrvIterator& operator ++() {if (S != Owner->ProvideP) S = Owner->ProvideP + - (Type == PrvVer?S->NextPkgProv:S->NextProvides); return *this;} + inline PrvIterator& operator ++() { + if (S != Owner->ProvideP) + S = Owner->ProvideP + (Type == PrvVer ? S->NextPkgProv : S->NextProvides); + return *this; + } inline PrvIterator operator++(int) { PrvIterator const tmp(*this); operator++(); return tmp; } // Accessors -- cgit v1.2.3-70-g09d2