Commit 46408bd8 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

save double hash lookup

Change-Id: I9a0c5b51955e137f85bd505d2cc35a69b2d2fd91
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 763adac3
......@@ -126,10 +126,13 @@ for my $file (@files) {
my %prev = ();
my %next = ();
my $last = $doctitle;
my $lastpage = $title2page{$last};
for my $title (@toc) {
$next{$last} = $title2page{$title};
$prev{$title} = $title2page{$last};
my $page = $title2page{$title};
$next{$last} = $page;
$prev{$title} = $lastpage;
$last = $title;
$lastpage = $page;
}
for my $file (@files) {
......
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