Fix warnings in charactermap

* no need to overload ScrollTo() with a non-related method - renamed local
  ScrollTo() to ScrollToBlock()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-19 15:59:50 +00:00
parent 3605272d0f
commit 7f2103fe25
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ CharacterView::IsShowingBlock(int32 blockIndex) const
void void
CharacterView::ScrollTo(int32 blockIndex) CharacterView::ScrollToBlock(int32 blockIndex)
{ {
if (blockIndex < 0) if (blockIndex < 0)
blockIndex = 0; blockIndex = 0;

View File

@ -30,7 +30,7 @@ public:
bool IsShowingBlock(int32 blockIndex) const; bool IsShowingBlock(int32 blockIndex) const;
void ScrollTo(int32 blockIndex); void ScrollToBlock(int32 blockIndex);
static void UnicodeToUTF8(uint32 c, char* text, static void UnicodeToUTF8(uint32 c, char* text,
size_t textSize); size_t textSize);

View File

@ -268,7 +268,7 @@ CharacterWindow::MessageReceived(BMessage* message)
BlockListItem* item BlockListItem* item
= static_cast<BlockListItem*>(fUnicodeBlockView->ItemAt(index)); = static_cast<BlockListItem*>(fUnicodeBlockView->ItemAt(index));
fCharacterView->ScrollTo(item->BlockIndex()); fCharacterView->ScrollToBlock(item->BlockIndex());
fFilterControl->MakeFocus(); fFilterControl->MakeFocus();
break; break;