Kaydet (Commit) 51c639d1 authored tarafından Noel Grandin's avatar Noel Grandin

expand SwRangeRedlinePtr

it is just obfuscating the code

Change-Id: I72491d4861d06bd032bb014314c18605967aa3c9
Reviewed-on: https://gerrit.libreoffice.org/72824
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ff634cf6
......@@ -322,8 +322,6 @@ struct CompareSwRedlineTable
// Notification type for notifying about redlines to LOK clients
enum class RedlineNotification { Add, Remove, Modify };
typedef SwRangeRedline* SwRangeRedlinePtr;
class SwRedlineTable
{
public:
......@@ -338,9 +336,9 @@ public:
bool Contains(const SwRangeRedline* p) const { return maVector.find(const_cast<SwRangeRedline*>(p)) != maVector.end(); }
size_type GetPos(const SwRangeRedline* p) const;
bool Insert(SwRangeRedlinePtr& p);
bool Insert(SwRangeRedlinePtr& p, size_type& rInsPos);
bool InsertWithValidRanges(SwRangeRedlinePtr& p, size_type* pInsPos = nullptr);
bool Insert(SwRangeRedline*& p);
bool Insert(SwRangeRedline*& p, size_type& rInsPos);
bool InsertWithValidRanges(SwRangeRedline*& p, size_type* pInsPos = nullptr);
void Remove( size_type nPos );
void Remove( const SwRangeRedline* p );
......
......@@ -422,7 +422,7 @@ void SwRedlineTable::LOKRedlineNotification(RedlineNotification nType, SwRangeRe
}
}
bool SwRedlineTable::Insert(SwRangeRedlinePtr& p)
bool SwRedlineTable::Insert(SwRangeRedline*& p)
{
if( p->HasValidRange() )
{
......@@ -435,7 +435,7 @@ bool SwRedlineTable::Insert(SwRangeRedlinePtr& p)
return InsertWithValidRanges( p );
}
bool SwRedlineTable::Insert(SwRangeRedlinePtr& p, size_type& rP)
bool SwRedlineTable::Insert(SwRangeRedline*& p, size_type& rP)
{
if( p->HasValidRange() )
{
......@@ -557,7 +557,7 @@ std::vector<SwRangeRedline*> GetAllValidRanges(std::unique_ptr<SwRangeRedline> p
} // namespace sw
bool SwRedlineTable::InsertWithValidRanges(SwRangeRedlinePtr& p, size_type* pInsPos)
bool SwRedlineTable::InsertWithValidRanges(SwRangeRedline*& p, size_type* pInsPos)
{
bool bAnyIns = false;
std::vector<SwRangeRedline*> const redlines(
......
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