summaryrefslogtreecommitdiff
path: root/src/libical/icalparameter_cxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical/icalparameter_cxx.cpp')
-rw-r--r--src/libical/icalparameter_cxx.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/libical/icalparameter_cxx.cpp b/src/libical/icalparameter_cxx.cpp
index 73654e96..70510533 100644
--- a/src/libical/icalparameter_cxx.cpp
+++ b/src/libical/icalparameter_cxx.cpp
@@ -3,18 +3,10 @@
* @author fnguyen (12/10/01)
* @brief Implementation of C++ Wrapper for icalparameter.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 "icalparameter_cxx.h"
@@ -24,7 +16,7 @@ ICalParameter::ICalParameter() : imp(icalparameter_new(ICAL_ANY_PARAMETER))
{
}
-ICalParameter::ICalParameter(const ICalParameter &v) : imp(icalparameter_new_clone(v.imp))
+ICalParameter::ICalParameter(const ICalParameter &v) : imp(icalparameter_clone(v.imp))
{
if (imp == NULL) {
throw icalerrno;
@@ -39,7 +31,7 @@ ICalParameter &ICalParameter::operator=(const ICalParameter &v)
if (imp != NULL) {
icalparameter_free(imp);
- imp = icalparameter_new_clone(v.imp);
+ imp = icalparameter_clone(v.imp);
if (imp == NULL) {
throw icalerrno;
}