Closed ticket #2281. Method Link in class LocalLink shadowed destructor of parent class Link.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25953 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -179,9 +179,9 @@ void XRefDefs::Matches(const char* s, XMatchResult* r, bool all) {
|
||||
bool cont;
|
||||
ASSERT(found); (void)found;
|
||||
if (pat1->IsLink()) {
|
||||
cont = r->Link(def1, &match);
|
||||
cont = r->MatchLink(def1, &match);
|
||||
} else {
|
||||
cont = r->Dest(def1, &match);
|
||||
cont = r->MatchDest(def1, &match);
|
||||
}
|
||||
if (!cont) break;
|
||||
|
||||
@@ -370,12 +370,12 @@ RecordDests::RecordDests(XRefDests* dests, TextLine* line, int32 page)
|
||||
{
|
||||
}
|
||||
|
||||
bool RecordDests::Link(XRefDef* def, MatchResult* result) {
|
||||
bool RecordDests::MatchLink(XRefDef* def, MatchResult* result) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool RecordDests::Dest(XRefDef* def, MatchResult* result) {
|
||||
bool RecordDests::MatchDest(XRefDef* def, MatchResult* result) {
|
||||
if (result->CountResults() >= 2) {
|
||||
BString s;
|
||||
BRect b;
|
||||
@@ -399,7 +399,7 @@ LocalLink::LocalLink(XRefDefs* defs, XRefDests* dests, PDFWriter* writer, BStrin
|
||||
}
|
||||
|
||||
|
||||
bool LocalLink::Link(XRefDef* def, MatchResult* result) {
|
||||
bool LocalLink::MatchLink(XRefDef* def, MatchResult* result) {
|
||||
if (result->CountResults() >= 2) {
|
||||
BString label;
|
||||
result->GetString(1, &label);
|
||||
@@ -421,7 +421,7 @@ bool LocalLink::Link(XRefDef* def, MatchResult* result) {
|
||||
}
|
||||
|
||||
|
||||
bool LocalLink::Dest(XRefDef* def, MatchResult* result) {
|
||||
bool LocalLink::MatchDest(XRefDef* def, MatchResult* result) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,8 +141,8 @@ public:
|
||||
class XMatchResult {
|
||||
public:
|
||||
virtual ~XMatchResult() { };
|
||||
virtual bool Link(XRefDef* def, MatchResult* result) = 0;
|
||||
virtual bool Dest(XRefDef* def, MatchResult* result) = 0;
|
||||
virtual bool MatchLink(XRefDef* def, MatchResult* result) = 0;
|
||||
virtual bool MatchDest(XRefDef* def, MatchResult* result) = 0;
|
||||
};
|
||||
|
||||
|
||||
@@ -210,8 +210,8 @@ class RecordDests : public XMatchResult {
|
||||
|
||||
public:
|
||||
RecordDests(XRefDests* dests, TextLine* line, int32 page);
|
||||
bool Link(XRefDef* def, MatchResult* result);
|
||||
bool Dest(XRefDef* def, MatchResult* result);
|
||||
bool MatchLink(XRefDef* def, MatchResult* result);
|
||||
bool MatchDest(XRefDef* def, MatchResult* result);
|
||||
};
|
||||
|
||||
|
||||
@@ -231,8 +231,8 @@ protected:
|
||||
|
||||
public:
|
||||
LocalLink(XRefDefs* defs, XRefDests* dests, PDFWriter* writer, BString* utf8, int32 page);
|
||||
bool Link(XRefDef* def, MatchResult* result);
|
||||
bool Dest(XRefDef* def, MatchResult* result);
|
||||
bool MatchLink(XRefDef* def, MatchResult* result);
|
||||
bool MatchDest(XRefDef* def, MatchResult* result);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user