scout: Instantiate templates in their namespace.

When building the code with clang the following warning message is
prodiced:

  "explicit instantiation of 'Scout::Browser_window' must occur in namespace 'Scout'
   template class Browser_window<Genode::Pixel_rgb888>"

 This happens for several different types. This patch fixes the problem
 by instantiating all those templates using their explicit full name.

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 01:27:46 +01:00 committed by Norman Feske
parent d475015ada
commit 1edac9730c
3 changed files with 7 additions and 7 deletions

View File

@ -477,4 +477,4 @@ void Browser_window<PT>::handle_scroll(int view_pos)
ypos_sb(-view_pos, 0);
}
template class Browser_window<Genode::Pixel_rgb888>;
template class Scout::Browser_window<Genode::Pixel_rgb888>;

View File

@ -327,4 +327,4 @@ Element *Scrollbar<PT>::find(Point position)
}
template class Scrollbar<Genode::Pixel_rgb888>;
template class Scout::Scrollbar<Genode::Pixel_rgb888>;

View File

@ -198,8 +198,8 @@ Element *Icon<PT, W, H>::find(Point position)
return 0;
}
template class Horizontal_shadow<Genode::Pixel_rgb888, 40>;
template class Horizontal_shadow<Genode::Pixel_rgb888, 160>;
template class Icon<Genode::Pixel_rgb888, 16, 16>;
template class Icon<Genode::Pixel_rgb888, 32, 32>;
template class Icon<Genode::Pixel_rgb888, 64, 64>;
template class Scout::Horizontal_shadow<Genode::Pixel_rgb888, 40>;
template class Scout::Horizontal_shadow<Genode::Pixel_rgb888, 160>;
template class Scout::Icon<Genode::Pixel_rgb888, 16, 16>;
template class Scout::Icon<Genode::Pixel_rgb888, 32, 32>;
template class Scout::Icon<Genode::Pixel_rgb888, 64, 64>;