diff options
author | Jose <jose@zeroc.com> | 2019-06-07 11:33:31 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-06-07 11:33:31 +0200 |
commit | 7d9486b9113d5bbb533ced14d4e145faf97dcda2 (patch) | |
tree | 6c7899e633ddf97c03df49156b1483b23010da3b /cpp/include | |
parent | Fix code format fixes (diff) | |
parent | JavaScript browser testing fixes (diff) | |
download | ice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.tar.bz2 ice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.tar.xz ice-7d9486b9113d5bbb533ced14d4e145faf97dcda2.zip |
Merge remote-tracking branch 'origin/3.7' into swift
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/Ice/Value.h | 2 | ||||
-rw-r--r-- | cpp/include/IceUtil/Optional.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/cpp/include/Ice/Value.h b/cpp/include/Ice/Value.h index f5033d1fc9f..fa7f50c9b9c 100644 --- a/cpp/include/Ice/Value.h +++ b/cpp/include/Ice/Value.h @@ -42,7 +42,7 @@ public: virtual void ice_preMarshal(); /** - * The Ice run time invokes this method vafter unmarshaling an object's data members. This allows a + * The Ice run time invokes this method after unmarshaling an object's data members. This allows a * subclass to override this method in order to perform additional initialization. */ virtual void ice_postUnmarshal(); diff --git a/cpp/include/IceUtil/Optional.h b/cpp/include/IceUtil/Optional.h index a4266aeeb6c..fdb89b7362b 100644 --- a/cpp/include/IceUtil/Optional.h +++ b/cpp/include/IceUtil/Optional.h @@ -47,6 +47,14 @@ public: } /** + * Constructs an optional as a copy of the given optional. + * @param r The source optional. + */ + Optional(const Optional& r) : _value(r._value), _isSet(r._isSet) + { + } + + /** * Constructs an optional with the given value. * @param p The initial value. */ |