summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2025-06-18 19:39:15 +0000
committerJulian Andres Klode <jak@debian.org>2025-08-26 11:51:04 +0000
commitf3c5d176d6d0c91ff2cc80f12eed43a664d3d779 (patch)
treeb8b055177549a75c593197c7a340832c815d518f /apt-pkg/cacheiterators.h
parent66ef39b9490c51bc396e28cdc23a577f114cbc79 (diff)
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]
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r--apt-pkg/cacheiterators.h7
1 files changed, 5 insertions, 2 deletions
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<Provides, PrvIterator>
}
// 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