[haiku-commits] r38268 - haiku/trunk/src/apps/charactermap

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 19 Aug 2010 17:59:50 +0200 (CEST)

Author: zooey
Date: 2010-08-19 17:59:50 +0200 (Thu, 19 Aug 2010)
New Revision: 38268
Changeset: http://dev.haiku-os.org/changeset/38268

Modified:
   haiku/trunk/src/apps/charactermap/CharacterView.cpp
   haiku/trunk/src/apps/charactermap/CharacterView.h
   haiku/trunk/src/apps/charactermap/CharacterWindow.cpp
Log:
Fix warnings in charactermap
* no need to overload ScrollTo() with a non-related method - renamed local
  ScrollTo() to ScrollToBlock()


Modified: haiku/trunk/src/apps/charactermap/CharacterView.cpp
===================================================================
--- haiku/trunk/src/apps/charactermap/CharacterView.cpp 2010-08-19 15:54:21 UTC 
(rev 38267)
+++ haiku/trunk/src/apps/charactermap/CharacterView.cpp 2010-08-19 15:59:50 UTC 
(rev 38268)
@@ -103,7 +103,7 @@
 
 
 void
-CharacterView::ScrollTo(int32 blockIndex)
+CharacterView::ScrollToBlock(int32 blockIndex)
 {
        if (blockIndex < 0)
                blockIndex = 0;

Modified: haiku/trunk/src/apps/charactermap/CharacterView.h
===================================================================
--- haiku/trunk/src/apps/charactermap/CharacterView.h   2010-08-19 15:54:21 UTC 
(rev 38267)
+++ haiku/trunk/src/apps/charactermap/CharacterView.h   2010-08-19 15:59:50 UTC 
(rev 38268)
@@ -30,7 +30,7 @@
 
                        bool                    IsShowingBlock(int32 
blockIndex) const;
 
-                       void                    ScrollTo(int32 blockIndex);
+                       void                    ScrollToBlock(int32 blockIndex);
 
        static  void                    UnicodeToUTF8(uint32 c, char* text,
                                                                size_t 
textSize);

Modified: haiku/trunk/src/apps/charactermap/CharacterWindow.cpp
===================================================================
--- haiku/trunk/src/apps/charactermap/CharacterWindow.cpp       2010-08-19 
15:54:21 UTC (rev 38267)
+++ haiku/trunk/src/apps/charactermap/CharacterWindow.cpp       2010-08-19 
15:59:50 UTC (rev 38268)
@@ -268,7 +268,7 @@
 
                        BlockListItem* item
                                = 
static_cast<BlockListItem*>(fUnicodeBlockView->ItemAt(index));
-                       fCharacterView->ScrollTo(item->BlockIndex());
+                       fCharacterView->ScrollToBlock(item->BlockIndex());
 
                        fFilterControl->MakeFocus();
                        break;


Other related posts:

  • » [haiku-commits] r38268 - haiku/trunk/src/apps/charactermap - zooey