diff options
Diffstat (limited to 'cpp/src/qpid/framing')
| -rw-r--r-- | cpp/src/qpid/framing/FieldTable.cpp | 10 | ||||
| -rw-r--r-- | cpp/src/qpid/framing/FieldTable.h | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/cpp/src/qpid/framing/FieldTable.cpp b/cpp/src/qpid/framing/FieldTable.cpp index 90acbaf6bc..4da5394479 100644 --- a/cpp/src/qpid/framing/FieldTable.cpp +++ b/cpp/src/qpid/framing/FieldTable.cpp @@ -71,19 +71,19 @@ void FieldTable::setString(const std::string& name, const std::string& value){ values[name] = ValuePtr(new Str16Value(value)); } -void FieldTable::setInt(const std::string& name, int value){ +void FieldTable::setInt(const std::string& name, const int value){ values[name] = ValuePtr(new IntegerValue(value)); } -void FieldTable::setInt64(const std::string& name, int64_t value){ +void FieldTable::setInt64(const std::string& name, const int64_t value){ values[name] = ValuePtr(new Integer64Value(value)); } -void FieldTable::setTimestamp(const std::string& name, uint64_t value){ +void FieldTable::setTimestamp(const std::string& name, const uint64_t value){ values[name] = ValuePtr(new TimeValue(value)); } -void FieldTable::setUInt64(const std::string& name, uint64_t value){ +void FieldTable::setUInt64(const std::string& name, const uint64_t value){ values[name] = ValuePtr(new Unsigned64Value(value)); } @@ -96,7 +96,7 @@ void FieldTable::setArray(const std::string& name, const Array& value) values[name] = ValuePtr(new ArrayValue(value)); } -void FieldTable::setFloat(const std::string& name, float value){ +void FieldTable::setFloat(const std::string& name, const float value){ values[name] = ValuePtr(new FloatValue(value)); } diff --git a/cpp/src/qpid/framing/FieldTable.h b/cpp/src/qpid/framing/FieldTable.h index 66103448a7..600ee5356d 100644 --- a/cpp/src/qpid/framing/FieldTable.h +++ b/cpp/src/qpid/framing/FieldTable.h @@ -62,14 +62,14 @@ class FieldTable bool isSet(const std::string& name) const { return get(name).get() != 0; } void setString(const std::string& name, const std::string& value); - void setInt(const std::string& name, int value); - void setInt64(const std::string& name, int64_t value); - void setTimestamp(const std::string& name, uint64_t value); - void setUInt64(const std::string& name, uint64_t value); + void setInt(const std::string& name, const int value); + void setInt64(const std::string& name, const int64_t value); + void setTimestamp(const std::string& name, const uint64_t value); + void setUInt64(const std::string& name, const uint64_t value); void setTable(const std::string& name, const FieldTable& value); void setArray(const std::string& name, const Array& value); - void setFloat(const std::string& name, float value); - void setDouble(const std::string& name, double value); + void setFloat(const std::string& name, const float value); + void setDouble(const std::string& name, const double value); //void setDecimal(string& name, xxx& value); int getAsInt(const std::string& name) const; |
