/src/libreoffice/svx/source/svdraw/svdobjuserdatalist.cxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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 | | */ |
9 | | |
10 | | #include <memory> |
11 | | #include <svdobjuserdatalist.hxx> |
12 | | |
13 | 1.35M | SdrObjUserDataList::SdrObjUserDataList() {} |
14 | 1.35M | SdrObjUserDataList::~SdrObjUserDataList() {} |
15 | | |
16 | | size_t SdrObjUserDataList::GetUserDataCount() const |
17 | 15.4M | { |
18 | 15.4M | return maList.size(); |
19 | 15.4M | } |
20 | | |
21 | | SdrObjUserData& SdrObjUserDataList::GetUserData(size_t nNum) |
22 | 15.5M | { |
23 | 15.5M | return *maList.at(nNum); |
24 | 15.5M | } |
25 | | |
26 | | void SdrObjUserDataList::AppendUserData(std::unique_ptr<SdrObjUserData> pData) |
27 | 1.35M | { |
28 | 1.35M | maList.push_back(std::move(pData)); |
29 | 1.35M | } |
30 | | |
31 | | void SdrObjUserDataList::DeleteUserData(size_t nNum) |
32 | 0 | { |
33 | 0 | maList.erase(maList.begin()+nNum); |
34 | 0 | } |
35 | | |
36 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |