summaryrefslogtreecommitdiff
path: root/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'gentools/templ.cpp/AMQP_ClientOperations.h.tmpl')
-rw-r--r--gentools/templ.cpp/AMQP_ClientOperations.h.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl b/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
index 7913d92988..996c919443 100644
--- a/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
+++ b/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
@@ -50,7 +50,7 @@ protected:
public:
AMQP_ClientOperations(u_int8_t major, u_int8_t minor) : version(major, minor) {}
- AMQP_ClientOperations(ProtocolVersion& version) : version(version) {}
+ AMQP_ClientOperations(const ProtocolVersion& version) : version(version) {}
virtual ~AMQP_ClientOperations() {}
inline u_int8_t getMajor() const { return version.getMajor(); }
@@ -60,7 +60,7 @@ public:
{
return version.equals(_major, _minor);
}
- inline bool isVersion(ProtocolVersion& _version) const
+ inline bool isVersion(const ProtocolVersion& _version) const
{
return version.equals(_version);
}