Project

General

Profile

Actions

Task #3158

closed

Refactor Interest::getLink to save parsed Link object

Added by Alex Afanasyev over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Currently, Interest::getLink attempts to create a new instance of Link object.

As part of #3155 and #3034 it was decided that getLink should remember the parsed Link object within internal shared_ptr<Link> variable (cannot use unique_ptr as it has deleted copy constructor). This also implies that the signature of getLink method needs to be changed to

  const Link&
  getLink() const;
Actions

Also available in: Atom PDF