File: fix-compilation-newer-apt.diff

package info (click to toggle)
rust-rust-apt 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: cpp: 703; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/apt-pkg-c/cache.h
+++ b/apt-pkg-c/cache.h
@@ -32,7 +32,7 @@
 	// Return a package by name.
 	UniquePtr<PkgIterator> find_pkg(str name) const {
 		return std::make_unique<PkgIterator>(
-			this->unconst()->GetPkgCache()->FindPkg(APT::StringView(name.begin(), name.length()))
+			this->unconst()->GetPkgCache()->FindPkg(std::string_view(name.begin(), name.length()))
 		);
 	}