diff options
Diffstat (limited to 'src/libical/icalproperty_cxx.cpp')
-rw-r--r-- | src/libical/icalproperty_cxx.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/libical/icalproperty_cxx.cpp b/src/libical/icalproperty_cxx.cpp index fd2a7e48..6a377fec 100644 --- a/src/libical/icalproperty_cxx.cpp +++ b/src/libical/icalproperty_cxx.cpp @@ -3,18 +3,10 @@ * @author fnguyen (12/10/01) * @brief Implementation of C++ Wrapper for icalproperty.c * - * (C) COPYRIGHT 2001, Critical Path + * SPDX-FileCopyrightText: 2001, Critical Path - This library is free software; you can redistribute it and/or modify - it under the terms of either: + SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0 - The LGPL as published by the Free Software Foundation, version - 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html - - Or: - - The Mozilla Public License Version 2.0. You may obtain a copy of - the License at https://www.mozilla.org/MPL/ */ #include "icalproperty_cxx.h" @@ -26,7 +18,7 @@ ICalProperty::ICalProperty() : imp(icalproperty_new(ICAL_ANY_PROPERTY)) { } -ICalProperty::ICalProperty(const ICalProperty &v) : imp(icalproperty_new_clone(v.imp)) +ICalProperty::ICalProperty(const ICalProperty &v) : imp(icalproperty_clone(v.imp)) { if (imp == NULL) { throw icalerrno; @@ -41,7 +33,7 @@ ICalProperty &ICalProperty::operator=(const ICalProperty &v) if (imp != NULL) { icalproperty_free(imp); - imp = icalproperty_new_clone(v.imp); + imp = icalproperty_clone(v.imp); if (imp == NULL) { throw icalerrno; } |