[Haiku-commits] r31297 - haiku/trunk/src/apps/diskprobe

bonefish at BerliOS bonefish at mail.berlios.de
Sun Jun 28 18:38:35 CEST 2009


Author: bonefish
Date: 2009-06-28 18:38:32 +0200 (Sun, 28 Jun 2009)
New Revision: 31297
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31297&view=rev

Modified:
   haiku/trunk/src/apps/diskprobe/DataView.cpp
   haiku/trunk/src/apps/diskprobe/ProbeView.cpp
Log:
Fixed gcc 4 warnings.


Modified: haiku/trunk/src/apps/diskprobe/DataView.cpp
===================================================================
--- haiku/trunk/src/apps/diskprobe/DataView.cpp	2009-06-28 16:38:08 UTC (rev 31296)
+++ haiku/trunk/src/apps/diskprobe/DataView.cpp	2009-06-28 16:38:32 UTC (rev 31297)
@@ -561,7 +561,7 @@
 	// *********
 
 	BRect rect;
-	if (start == 0 || !drawBlock && !drawLastLine)
+	if (start == 0 || (!drawBlock && !drawLastLine))
 		rect = firstLine;
 	else if (drawBlock)
 		rect = block;

Modified: haiku/trunk/src/apps/diskprobe/ProbeView.cpp
===================================================================
--- haiku/trunk/src/apps/diskprobe/ProbeView.cpp	2009-06-28 16:38:08 UTC (rev 31296)
+++ haiku/trunk/src/apps/diskprobe/ProbeView.cpp	2009-06-28 16:38:32 UTC (rev 31297)
@@ -92,6 +92,7 @@
 		off_t Size() const { return fSize; }
 		uint32 BlockSize() const { return fBlockSize; }
 
+		virtual void SetPosition(float position);
 		void SetPosition(off_t position);
 		void SetSize(off_t size);
 		void SetBlockSize(uint32 blockSize);
@@ -415,6 +416,13 @@
 
 
 void
+PositionSlider::SetPosition(float position)
+{
+	BSlider::SetPosition(position);
+}
+
+
+void
 PositionSlider::SetPosition(off_t position)
 {
 	position /= fBlockSize;




More information about the Haiku-commits mailing list