~ubuntu-branches/ubuntu/oneiric/squid3/oneiric-security

« back to all changes in this revision

Viewing changes to src/HttpVersion.h

  • Committer: Bazaar Package Importer
  • Author(s): Mahyuddin Susanto
  • Date: 2011-02-15 18:46:13 UTC
  • mfrom: (21.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110215184613-1u3dh5sz4i055flk
Tags: 3.1.10-1ubuntu1
* Merge from debian unstable. (LP: #719283)  Remaining changes:
  - debian/patches/18-fix-ftbfs-binutils-gold.dpatch: Add library linker into
    LIBS instead to LDFLAGS to fixing FTBFS binutils-gold.
* Drop Ubuntu configuration for ufw which landed in Debian and sync it: 
  - debian/squid3.ufw.profile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        return ((this->major != that.major) || (this->minor != that.minor));
67
67
    }
68
68
 
 
69
    bool operator <(const HttpVersion& that) const {
 
70
        return (this->major < that.major ||
 
71
                (this->major == that.major && this->minor < that.minor));
 
72
    }
 
73
 
 
74
    bool operator >(const HttpVersion& that) const {
 
75
        return (this->major > that.major ||
 
76
                (this->major == that.major && this->minor > that.minor));
 
77
    }
 
78
 
 
79
    bool operator <=(const HttpVersion& that) const {
 
80
        return !(*this > that);
 
81
    }
 
82
 
 
83
    bool operator >=(const HttpVersion& that) const {
 
84
        return !(*this < that);
 
85
    }
69
86
};
70
87
 
71
88
#endif /* SQUID_HTTPVERSION_H */