1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #include <svdobjuserdatalist.hxx>
13 SdrObjUserDataList::SdrObjUserDataList() {}
14 SdrObjUserDataList::~SdrObjUserDataList() {}
16 size_t SdrObjUserDataList::GetUserDataCount() const
21 SdrObjUserData
& SdrObjUserDataList::GetUserData(size_t nNum
)
23 return *maList
.at(nNum
);
26 void SdrObjUserDataList::AppendUserData(std::unique_ptr
<SdrObjUserData
> pData
)
28 maList
.push_back(std::move(pData
));
31 void SdrObjUserDataList::DeleteUserData(size_t nNum
)
33 maList
.erase(maList
.begin()+nNum
);
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */