Kaydet (Commit) 75028bd8 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Markus Mohrhard

fdo#75757: remove inheritance to std::vector

Change-Id: I1874b5b4a059ef5fc8818b3b49ff10f2917b20ca
Reviewed-on: https://gerrit.libreoffice.org/11135Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst c6542e4f
......@@ -948,8 +948,8 @@ const SfxItemSet* FlatFndBox::GetItemSet(sal_uInt16 n_Col, sal_uInt16 n_Row) con
sal_uInt16 SwMovedBoxes::GetPos(const SwTableBox* pTableBox) const
{
const_iterator it = std::find(begin(), end(), pTableBox);
return it == end() ? USHRT_MAX : it - begin();
std::vector<const SwTableBox*>::const_iterator it = std::find(mBoxes.begin(), mBoxes.end(), pTableBox);
return it == mBoxes.end() ? USHRT_MAX : it - mBoxes.begin();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -44,9 +44,14 @@ namespace com {
}
}
class SwMovedBoxes : public std::vector<const SwTableBox*>
class SwMovedBoxes
{
private:
std::vector<const SwTableBox*> mBoxes;
public:
void push_back(const SwTableBox* &rpTableBox) {mBoxes.push_back(rpTableBox);}
sal_uInt16 GetPos(const SwTableBox* pTableBox) const;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment