This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 06/11] packageversion::sourcePackageSpecification() is const
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Fri, 28 Apr 2017 13:12:00 +0100
- Subject: [PATCH setup 06/11] packageversion::sourcePackageSpecification() is const
- Authentication-results: sourceware.org; auth=none
- References: <20170428121205.12240-1-jon.turney@dronecode.org.uk>
---
package_version.cc | 2 +-
package_version.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package_version.cc b/package_version.cc
index 695641f..1f9f2d8 100644
--- a/package_version.cc
+++ b/package_version.cc
@@ -218,7 +218,7 @@ packageversion::sourcePackage() const
}
PackageSpecification &
-packageversion::sourcePackageSpecification ()
+packageversion::sourcePackageSpecification () const
{
return data->sourcePackageSpecification ();
}
diff --git a/package_version.h b/package_version.h
index 6f6fcde..b728acc 100644
--- a/package_version.h
+++ b/package_version.h
@@ -106,7 +106,7 @@ public:
const std::string LDesc () const;
void set_ldesc (const std::string& );
packageversion sourcePackage () const;
- PackageSpecification & sourcePackageSpecification ();
+ PackageSpecification & sourcePackageSpecification () const;
void setSourcePackageSpecification (PackageSpecification const &);
/* invariant: these never return NULL */
--
2.12.2