From: Marcin Siodelski Date: Thu, 30 Jun 2016 11:32:32 +0000 (+0200) Subject: [4497] Documented Option::clone() in all option classes. X-Git-Tag: trac4551_base~23^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3ac9ac2b6cb19826adbfb6b9fb64828cf5efba;p=thirdparty%2Fkea.git [4497] Documented Option::clone() in all option classes. Also udated copyright dates where applicable. --- diff --git a/src/bin/perfdhcp/localized_option.h b/src/bin/perfdhcp/localized_option.h index 5c7f89fde0..289ff7dcdc 100644 --- a/src/bin/perfdhcp/localized_option.h +++ b/src/bin/perfdhcp/localized_option.h @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2012-2016 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/src/lib/dhcp/option.cc b/src/lib/dhcp/option.cc index d3bf8ad408..82e3593cfb 100644 --- a/src/lib/dhcp/option.cc +++ b/src/lib/dhcp/option.cc @@ -74,8 +74,7 @@ Option::operator=(const Option& rhs) { OptionPtr Option::clone() const { - OptionPtr option(new Option(*this)); - return (option); + return (cloneInternal