diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-08-26 11:52:10 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-08-26 11:52:10 +0000 |
| commit | 28591b9ca76f5bf62942fea0b32fc6adac1f1318 (patch) | |
| tree | b8b055177549a75c593197c7a340832c815d518f | |
| parent | 66ef39b9490c51bc396e28cdc23a577f114cbc79 (diff) | |
| parent | f3c5d176d6d0c91ff2cc80f12eed43a664d3d779 (diff) | |
Merge branch 'fix-indent' into 'main'
Fix indentation compiler warning with clang
See merge request apt-team/apt!498
| -rw-r--r-- | apt-pkg/cacheiterators.h | 7 |
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 |
