From: Jiri Srain Date: Tue, 24 Jan 2006 11:59:02 +0000 (+0000) Subject: use Pathname instead of std::string X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~3151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26c6a57223a6f43a6b15f4473622fdacb12bf7af;p=platform%2Fupstream%2Flibzypp.git use Pathname instead of std::string --- diff --git a/zypp/DeltaRpm.h b/zypp/DeltaRpm.h index dae7601..4683ef8 100644 --- a/zypp/DeltaRpm.h +++ b/zypp/DeltaRpm.h @@ -15,6 +15,7 @@ #include "zypp/Edition.h" #include "zypp/Arch.h" #include "zypp/BaseVersion.h" +#include "zypp/Pathname.h" /////////////////////////////////////////////////////////////////// namespace zypp @@ -24,7 +25,7 @@ namespace zypp { public: DeltaRpm(const Arch & arch, - const std::string & filename, + const Pathname & filename, const ByteCount & downloadsize, const CheckSum & checksum, const Date & buildtime, @@ -37,14 +38,14 @@ namespace zypp , _base_version(base_version) {} Arch arch() { return _arch; } - std::string filename() { return _filename; } + Pathname filename() { return _filename; } ByteCount downloadsize() { return _downloadsize; } CheckSum checksum() { return _checksum; } Date buildtime() { return _buildtime; } BaseVersion baseVersion() { return _base_version; } private: Arch _arch; - std::string _filename; + Pathname _filename; ByteCount _downloadsize; CheckSum _checksum; Date _buildtime; diff --git a/zypp/PatchRpm.h b/zypp/PatchRpm.h index f9bd818..f81c5fe 100644 --- a/zypp/PatchRpm.h +++ b/zypp/PatchRpm.h @@ -15,6 +15,7 @@ #include "zypp/Edition.h" #include "zypp/Arch.h" #include "zypp/BaseVersion.h" +#include "zypp/Pathname.h" /////////////////////////////////////////////////////////////////// namespace zypp @@ -24,7 +25,7 @@ namespace zypp { public: PatchRpm(const Arch & arch, - const std::string & filename, + const Pathname & filename, const ByteCount & downloadsize, const CheckSum & checksum, const Date & buildtime, @@ -37,14 +38,14 @@ namespace zypp , _base_versions(base_versions) {} Arch arch() { return _arch; } - std::string filename() { return _filename; } + Pathname filename() { return _filename; } ByteCount downloadsize() { return _downloadsize; } CheckSum checksum() { return _checksum; } Date buildtime() { return _buildtime; } std::list baseVersions() { return _base_versions; } private: Arch _arch; - std::string _filename; + Pathname _filename; ByteCount _downloadsize; CheckSum _checksum; Date _buildtime;