const-correctness fix

This commit is contained in:
Guenter Obiltschnig 2016-04-23 09:21:55 +02:00
parent 4d7f2426f1
commit a5d7e994f5

View File

@ -78,10 +78,10 @@ public:
const std::string& getFileComment() const;
void getVersionMadeBy(int& major, int& minor);
void getVersionMadeBy(int& major, int& minor) const;
/// The ZIP version used to create the file
void getRequiredVersion(int& major, int& minor);
void getRequiredVersion(int& major, int& minor) const;
/// The minimum version required to extract the data
ZipCommon::HostSystem getHostSystem() const;
@ -343,14 +343,14 @@ inline Poco::UInt16 ZipFileInfo::getFileCommentLength() const
}
inline void ZipFileInfo::getVersionMadeBy(int& major, int& minor)
inline void ZipFileInfo::getVersionMadeBy(int& major, int& minor) const
{
major = (_rawInfo[VERSIONMADEBY_POS]/10);
minor = (_rawInfo[VERSIONMADEBY_POS]%10);
}
inline void ZipFileInfo::getRequiredVersion(int& major, int& minor)
inline void ZipFileInfo::getRequiredVersion(int& major, int& minor) const
{
major = (_rawInfo[VERSION_NEEDED_POS]/10);
minor = (_rawInfo[VERSION_NEEDED_POS]%10);