tdf#121119 master docs at-page anchor: clean-up renaming
[LibreOffice.git] / svx / source / svdraw / svdobjuserdatalist.cxx
blobcae5e8db68dcd5fca20b421a99a01b37d9dfc8ff
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <memory>
11 #include <svdobjuserdatalist.hxx>
13 SdrObjUserDataList::SdrObjUserDataList() {}
14 SdrObjUserDataList::~SdrObjUserDataList() {}
16 size_t SdrObjUserDataList::GetUserDataCount() const
18 return maList.size();
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: */